Re: SFTP and LoopFiles (General questions)
Hello Damba
That works perfectly. Thanks for all your help. Also is it better to download all the files at once from a given folder on SFTP server using GetFile(string LocalPath, string RemoteFile) or should we get the names of each file and then download one by one. I guess downloading one by one may be a hit on the connectiosn to SFTP but if we downlaod all the files at once using GetFile(string LocalPath, string RemoteFile), can I verify number of files downloaded?
Thanks,
Premal
Premal,
All you need to do is this:
[code]sftp1.ListAttributes( /your/path );[/code]
And do this in AttributesData Event:
[code]void sftp1_AttributesDataEvent(object Sender, WeOnlyDo.Client.SFTP.AttributesArgs[] Args)
{
Console.WriteLine(Args.Length.ToString());
}[/code]That's all the code you need, besides the connecting part. Can you please try that?
Regards,
Damba
Complete thread:
- SFTP and LoopFiles - Premal, 2009-03-03, 20:53
- Re: SFTP and LoopFiles - wodDamir, 2009-03-03, 21:08
- Re: SFTP and LoopFiles - Premal, 2009-03-03, 21:14
- Re: SFTP and LoopFiles - wodDamir, 2009-03-03, 21:31
- Re: SFTP and LoopFiles - Premal, 2009-03-04, 13:22
- Re: SFTP and LoopFiles - wodDamir, 2009-03-04, 13:25
- Re: SFTP and LoopFiles - premal, 2009-03-04, 15:09
- Re: SFTP and LoopFiles - wodDamir, 2009-03-04, 15:18
- Re: SFTP and LoopFiles - Premal, 2009-03-04, 15:26
- Re: SFTP and LoopFiles - Premal, 2009-03-04, 21:20
- Re: SFTP and LoopFiles - woddrazen, 2009-03-04, 23:17
- Re: SFTP and LoopFiles - Premal, 2009-03-05, 15:01
- Re: SFTP and LoopFiles - woddrazen, 2009-03-04, 23:17
- Re: SFTP and LoopFiles - Premal, 2009-03-04, 21:20
- Re: SFTP and LoopFiles - Premal, 2009-03-04, 15:26
- Re: SFTP and LoopFiles - wodDamir, 2009-03-04, 15:18
- Re: SFTP and LoopFiles - premal, 2009-03-04, 15:09
- Re: SFTP and LoopFiles - wodDamir, 2009-03-04, 13:25
- Re: SFTP and LoopFiles - Premal, 2009-03-04, 13:22
- Re: SFTP and LoopFiles - wodDamir, 2009-03-03, 21:31
- Re: SFTP and LoopFiles - Premal, 2009-03-03, 21:14
- Re: SFTP and LoopFiles - wodDamir, 2009-03-03, 21:08