Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REMOVE

Status
Not open for further replies.

jhm11

Programmer
Apr 3, 2001
4
CL
hello, somebody can say like flock a directory emptiness to me by CFFTP? I did the following thing, but it does not work;

<CFFTP ACTION=&quot;open&quot; USERNAME=&quot;xxx&quot; CONNECTION=&quot;test&quot; PASSWORD=&quot;fgdfgdf&quot; SERVER=&quot;ftp.myfto.com&quot; STOPONERROR=&quot;Yes&quot; timeout=&quot;500&quot;
passive=&quot;NO&quot;>

<cfset folder=&quot;/myfolder&quot;>
<CFFTP action=&quot;LISTDIR&quot;
STOPONERROR=&quot;Yes&quot;
NAME=&quot;Listfiles&quot;
DIRECTORY=&quot;/&quot;
CONNECTION=&quot;test&quot;>
<CFloop index=&quot;x&quot; From=&quot;1&quot; to=&quot;#Listfiles.RecordCount#&quot;>
<CFIF Listfiles.IsDirectory[x] is &quot;yes&quot; and (#listfiles.name[x]# eq folder>
<CFFTP Connection=&quot;test&quot; Action=&quot;Remove&quot; Item=&quot;#folder#&quot;>
</CFIF>
</CFLOOP>

because not it deleted?
thanks
 
I have the same problem but I do not even solve it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top