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

Magda

Yes, that's it, I am getting the file now. Thank you.
Magda

File for session.SessionLogPath

Sorry, now right log is attached.
martin

Re: Reply

Session log please => Session.SessionLogPath.
Magda

Reply

Please find session logs with command session.GetFileToDirectory(GetFileFromPath, DestPath)
Dim GetFileFromPath As String = "A:/Listy/Lista9.csv"
martin

Re: Can't access the file or directory error. LIST -a command

The correct path to the file seems to be A:/Listy/Lista9.csv. So use that in Session.GetFileToDirectory call. If that does not help, please post session log file (not the debug log).
Magda

Can't access the file or directory error. LIST -a command

Hello I am using WinSCP .NET assembly 6.3.7 in Visual Studio 2022 VB. I have issues with getting file from FTP server to local directory, foulting with errors:
Can’t get attribute of file, Could not retrieve directory listing, Can’t access the file or directory.

File is stored at A:/Listy/ directory on FTP server. File exist in the server – I am trying to get Lista9.csv.

I monitored the communication with Wireshark, please find loggs attached
-What exactly is LIST –a command, the response for this command is : Can’t access the file or directory. Than - even if the current directory is A:/Listy/ the program is trying to go to Listy again - with no success. Please check attachment. Is there a way to provoke some other listing command to the FTP server?
BR
Magda