File does not exists, session.FileExists returns false even though file is exists into list

Advertisement

kevalsavani
Joined:
Posts:
10
Location:
India

File does not exists, session.FileExists returns false even though file is exists into list

When I tried with session.FileExists("test.txt"), this returns false even though the file shows when I execute session.ListDirectory("/").
I have attached my log. I am using vb.net.
Description: Log of Listing and file exists

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: File does not exists, session.FileExists returns false even though file is exists into list

Your server is broken. It claims support for MLSD/MLST commands. Yet then it fails, when WinSCP tries using MLST command to test the file existence:

> 2019-12-29 21:46:23.649 FEAT
< 2019-12-29 21:46:23.716 211-Extensions suported:
< 2019-12-29 21:46:23.716  MLSD
< 2019-12-29 21:46:23.716 211 End.
...
> 2019-12-29 21:46:24.325 MLST /test.txt
< 2019-12-29 21:46:24.462 500 Unknow command
Try setting FtpUseMlsd to 1:
https://winscp.net/eng/docs/rawsettings#ftpusemlsd

Let us know.

Reply with quote

Advertisement

You can post new topics in this forum