Just renaming the directory would be too easy, I guess :)

hehehe
Jeff

-----Original Message-----
From: Jeff Green [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 8:28 PM
To: CF-Talk
Subject: CFFile is pretending to delete


Hi all,

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.
Sure enough when I look in the directory the index.cfm is still there.
This only seems to happen after I browse to, and view that user's URL
(www.mysite.com/userdir) before I delete it.
Its as if IIS (Win NT 4/IIS 4 ) sometimes  "holds on" to the file and doesnt
let it get deleted, although no error is thrown.  I assume this cause there
is no problem unless IIS has to serve the file first.
</TheProblem>

If I don't browse to the user's directory then there is no problem.  The
contents of the directory truly get deleted, and there is no problem
deleting the directory.

Any ideas on how I can fix this issue?

TIA,
Jeff


______________________________________________________________________
Dedicated Windows 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=coldfusiona
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