Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

0701

Thank you for the reply and the workaround. The FTP is included in the router Fritz!Box 7590. I made a workaround by reading all files.
martin

Re: Cannot read remote file

It looks like a bug in the FTP server.
With SIZE command it responds with the file size, but with MDTM command with the very same path it claims that the file does not exist.
> 2023-12-12 12:52:30.043 SIZE /SanDisk-ExtremePro-00/BackupTestAndSmile/Clients/100010/Data/Sql/pcdrdatasql100010.zip

< 2023-12-12 12:52:30.048 213 1365434
> 2023-12-12 12:52:30.048 MDTM /SanDisk-ExtremePro-00/BackupTestAndSmile/Clients/100010/Data/Sql/pcdrdatasql100010.zip
< 2023-12-12 12:52:30.053 550 /SanDisk-ExtremePro-00/BackupTestAndSmile/Clients/100010/Data/Sql/pcdrdatasql100010.zip: No such file or directory

Is that ProFTPD? What version?

You should be able to workaround this by forcing WinSCP to use LIST command instead of MDTM using:
sessionOptions.AddRawSettings("ProtocolFeatures", "-SIZE,-MDTM");
0701

Cannot read remote file

With C# I have problems with the functions GetFile or GetFileToDirectory. Error message: "no such file or directory". The function RemoteDirectoryInfo shows that the file is there. The log file is attached.

Thanks for your help.