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:]
Complete thread:
- Loopfiles and delete - havey, 2006-10-12, 00:16
- Re: Loopfiles and delete - wodSupport, 2006-10-12, 01:10
- Re: Loopfiles and delete - havey, 2006-10-12, 20:56
- Re: Loopfiles and delete - havey, 2006-10-12, 22:00
- Re: Loopfiles and delete - wodSupport, 2006-10-12, 22:21
- Re: Loopfiles and delete - havey, 2006-10-12, 22:44
- Re: Loopfiles and delete - wodSupport, 2006-10-12, 22:59
- Re: Loopfiles and delete - havey, 2006-10-13, 01:19
- Re: Loopfiles and delete - wodSupport, 2006-10-12, 22:59
- Re: Loopfiles and delete - havey, 2006-10-12, 22:44
- Re: Loopfiles and delete - wodSupport, 2006-10-12, 22:21
- Re: Loopfiles and delete - havey, 2006-10-12, 22:00
- Re: Loopfiles and delete - havey, 2006-10-12, 20:56
- Re: Loopfiles and delete - wodSupport, 2006-10-12, 01:10