Loopfiles and delete (wodSFTP / wodSFTP.NET / wodSFTPdll)
Hi, i using asp to getFiles from a remote server to local, that works great!
I'm having issues with LoopFiles and deleteFile from LoopFiles names.
My situation is that the remote server can place a files in the sftp folder at any time, I don't want to delete a file that might have been placed while i finished the GETFiles method and onto the deleteFiles method, so i was thinking that if i can get the file names of the GetFiles and delete them based on their names then i would have not conflicts. Hopefully i'm going about this the correct way:
Sftp.GetFiles E:wwwrootwww est , /ftp/www/rk/ON/
Sftp.LoopFiles /ftp/www/rk/ON/
for each name in LoopFiles
Sftp.DeleteFile /ftp/www/rk/ON/ & name
next
Sftp.Disconnect
Thanks![:wink:]