Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

rainmanec

Re: WinSCP .NET Assembly cannot download Dot files from Serv-U

martin wrote:


One possible workaround is doing something like GetFiles("/.ignor[e]", "xxx") - As the parameter is file mask (although it can match a single file only), WinSCP should use MLSD or LIST (to retrieve list of files) instead of MLST (to retrieve attributes of the specific file).


Thanks very much!

Use your method GetFiles("/[.]ignore", "xxx"), I solve this problem.
martin

Re: WinSCP .NET Assembly cannot download Dot files from Serv-U

Post a log file from WinSCP GUI showing download of those files.

It's possible that the server returns dot-files in MLSD or LIST response, but fails MLST command for them. That's imo a (server's) bug.

Why do you even call GetFiles explicitly for that single file?

One possible workaround is doing something like GetFiles("/.ignor[e]", "xxx") - As the parameter is file mask (although it can match a single file only), WinSCP should use MLSD or LIST (to retrieve list of files) instead of MLST (to retrieve attributes of the specific file).
rainmanec

Re: WinSCP .NET Assembly cannot download Dot files from Serv-U

martin wrote:

Can you download that file using any FTP client at all?


Yes, I can download the '.ignore' file with FileZilla or WinSCP Client.
But could not download in C# with WinSCP .Net assembly.
session.GetFiles("/.ignore", @"D:\backup\.ignore");
martin

Re: WinSCP .NET Assembly cannot download Dot files from Serv-U

Can you download that file using any FTP client at all?
rainmanec

WinSCP .NET Assembly cannot download Dot files from Serv-U

When I use "WinSCP .NET Assembly" to GetFiles("/.ignore", "xxx") from Serv-U server.

I found before RETR /.ignore the MLST /.ignore will excute, then Serv-U server return "550 No files found", the winscp throw a "SessionRemoteException: Can't get attributes of file '/.ignore'" error, download fail.

How to user WinSCP .NET Assembly to download dot files from serv-u?

Thanks very much!