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="open" USERNAME="xxx" CONNECTION="test" PASSWORD="fgdfgdf" SERVER="ftp.myfto.com" STOPONERROR="Yes" timeout="500"
passive="NO">
<cfset folder="/myfolder">
<CFFTP action="LISTDIR"
STOPONERROR="Yes"
NAME="Listfiles"
DIRECTORY="/"
CONNECTION="test">
<CFloop index="x" From="1" to="#Listfiles.RecordCount#">
<CFIF Listfiles.IsDirectory[x] is "yes" and (#listfiles.name[x]# eq folder>
<CFFTP Connection="test" Action="Remove" Item="#folder#">
</CFIF>
</CFLOOP>
because not it deleted?
thanks
<CFFTP ACTION="open" USERNAME="xxx" CONNECTION="test" PASSWORD="fgdfgdf" SERVER="ftp.myfto.com" STOPONERROR="Yes" timeout="500"
passive="NO">
<cfset folder="/myfolder">
<CFFTP action="LISTDIR"
STOPONERROR="Yes"
NAME="Listfiles"
DIRECTORY="/"
CONNECTION="test">
<CFloop index="x" From="1" to="#Listfiles.RecordCount#">
<CFIF Listfiles.IsDirectory[x] is "yes" and (#listfiles.name[x]# eq folder>
<CFFTP Connection="test" Action="Remove" Item="#folder#">
</CFIF>
</CFLOOP>
because not it deleted?
thanks