Discussion:
cfdirectory
(too old to reply)
Matthew
2009-03-25 12:28:22 UTC
Permalink
Hopefully this will be easy...running on Windows Server 2003, Apache, CF8.

I tell it to delete a folder inside my "boxes" directory, it also deletes the
"boxes" directory also and everything in it.

<cfdirectory
directory="e:\Apache2.2\htdocs\sites\smart\dropbox\boxes\#deletedrop.drop_folder
_name#" action="delete" recurse="yes">

#deletedrop.drop_folder_name# is coming out as 21643-1(A)-jhkhj, so I know
that its getting the correct variable.

Example: I have a folder inside the directory "boxes" directory called
"21643-1(A)-jhkhj" that I want to delete and everything inside it. The above
code is deleting all directories inside the boxes directory including itself.

Thanks for any help.

Matthew
Daverms
2009-03-25 12:33:52 UTC
Permalink
Hi Matthew,

You mean that, it is actually deleting the "boxes" directory too?
Matthew
2009-03-25 12:57:14 UTC
Permalink
I don't mean to sound rude, but the first line of my post explains that, yes,
it deletes the boxes directory also. I just want it to delete on directory
inside the "Boxes" directory and all the contents inside that targeted folder.

Matthew
tclaremont
2009-03-25 15:57:17 UTC
Permalink
Try putting a slash after #deletedrop.drop_folder_name#"

Also, if that variable is not correct, it will truncate and likely delete the boxes directory.
Loading...