Not sure exactly, but I always do this:
ExpandPath(".")
rather than this:
ExpandPath("*.*")
Try removing the *'s and see what happens.
Adrian
> -----Original Message-----
> From: Hunsaker, Michael Scott [mailto:[email protected]]
> Sent: 20 July 2009 14:24
> To: cf-talk
> Subject: getDirectoryFromPath Question
>
>
> Hello -
>
> I've noticed something strange when using the getDirectoryFromPath
> function and wanted to see if anyone else has seen this. It's probably
> something I'm doing incorrectly. Here's what I'm doing:
>
> In the application.cfc, I created an application variable to hold the
> physical path of the web site files. Instead of manually entering the
> physical path (G:\ Inetpub\wwwroot), I used the getDirectoryFromPath
> function like this:
>
> #getdirectoryfrompath(expandpath('*.*'))#
>
> That returns the same thing. However, when I use the function above as
> the "destination" in the CFFILE function, it returns an error. The
> error says:
>
> "The value of the attribute destination, which is currently
> G:\Inetpub\wwwroot\, is invalid."
>
> For some reason it adds a comma at the end of the physical path but I
> can't figure out why. Any ideas? I would appreciate any help.
>
> Thanks!!
>
> Mike
>
> Mike Hunsaker
> Assistant Director of Information Systems
> Kelley School of Business MBA Program
> 1275 East Tenth Street, Suite 2010
> Bloomington, IN 47405
> 812.855.7024
> [email protected]<mailto:[email protected]>
>
> Advance your career. Enhance your life.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324713
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4