Philip Arnold - ASP wrote:

>>In my app users get a directory created for them in the root
>>of the site
>>(ex. www.mysite.com/userdir ).  This user directory has only
>>one template
>>(index.cfm) that cflocations them to a dynamic page (ex.
>>www.mysite.com/dynamic.cfm?var=1 ) .
>>
>>The admin has the ability to change this user directory if
>>necessary.  Easy
>>enough, just delete that directory and make a new one.
>>So I loop through the contents of the user directory deleting
>>all but "." &
>>".." Successful, it does not break
>>Now that the dir is empty I delete the dir
>>
>><The_Problem>
>>CFDirectory sometimes breaks with the message of, "cant
>>delete directory,
>>contents not empty".  After I looped and deleted all of its contents,
>>successfully no error.
>>
>
>OK, I'm assuming that you're on NT here and not *nix...
>
>What you've got to remember is that any File/Directory action you
>perform means that CF passes the request to the NT File Handler, this
>means that all request are NOT immediate, if the machine is busy doing
>"something else", then the delete will take a back seat
>
>What this means in the "real world" is that you can't guarantee that all
>files will be deleted by the time that you get to delete the directory,
>but the directory request tries before it deletes...
>
>It's rather like SQL Server and Insert commands, they take a slightly
>back-seat to Select's - so if you insert, you may not see it
>immediately, but it's in the queue...
>
>HTH
>
>Philip Arnold
>Technical Director
>Certified ColdFusion Developer
>ASP Multimedia Limited
>T: +44 (0)20 8680 1133
>F: +44 (0)20 8686 7911
>
>An ISO9001 registered company.
>
>**********************************************************************
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the system manager.
>**********************************************************************
>
>
>
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Reply via email to