why not try to write the file to the directory in question and the <CFCATCH>
the error that ensues is the directory doesn't exist. If no error is thrown
then there is nothing more to do, if an error is thrown then create the DIR
and then fo the file write. There are any number of small variants on this
idea.

Or, since you want a DIR for each user, maybe just create it when the user
first signs up. You'd still want to catch any errors as above but the
chances of the directory not being there are severely restricted


> Does anybody know how to check for duplicate directory names?
>
>
> If it helps...
> I'm creating unique directories using a random number that is associated
> with a user. Which all their uploaded
> files will be dump into. What I am trying to figure out is how to check is
> the directory already exists, if it
> does, then skip the "create directory" section and just upload more
files...
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to