Are you specifying a file name? I believe that comma is part of the phrase, and not actually in the variable. Francois Levesque http://blog.critical-web.com/
On Mon, Jul 20, 2009 at 9:23 AM, Hunsaker, Michael Scott < mhuns...@indiana.edu> wrote: > > 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 > mhuns...@indiana.edu<mailto:mhuns...@indiana.edu> > > 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:324712 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4