OK,  this works:

 

<cfdirectory action="CREATE"

             directory="#ExpandPath("\userpages\#dynamic_name#")#">

 

And this works (hardcoded new directory name):

                                     

 <cfdirectory action="CREATE"

             directory="#ExpandPath(\userpages\theCreatedName\images)#">

 

But this doesn't work:

 

<cfdirectory action="CREATE"

 
directory="#ExpandPath("\userpages\#findUser.USER_NAME#\images")#">

 

I get this error (even though the directory DOES NOT exist yet)

 



The specified Directory attribute value
C:\mypath\httpdocs\userpages\theCreatedName \images could not be created. 


The most likely cause of this error is that
'C:\Inetpub\vhosts\bakersfield99.com\httpdocs\userpages\Howard \images'
already exists on your file system. The exception occurred during a
cfdirectory action="CREATE". 

 

 

I've tried various configurations of the directory = attributes (no quotes,
quotes in different places, etc.)  Nothing works.

 

I guess next I'll try creating the string before hand with CFSet, but even
if that works, I wonder why this didn't.

 

H.

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:245887
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to