Topic "Can't list files in remote server....."

Author Message
[View user's profile]

Joined: 2015-04-03
Posts: 3
Thanks for the previous answers. They were very useful. Now I'm having the following problem: I like to check the existence of a file in a remote server. For that purpose I'm connecting to it. Then I'm typing "ls name_of_file" and I'm getting the following response:
Error listing directory "name_of_file". and the next line:
CWD failed. "/name_of_file": directory not found.
There is no subdirectories on the place where the file is located - actually there are but I don't have permissions to see them and when I type:
pwd on the server I'm getting response:
Thanks in advance.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
The ls command can be used for directories only. Use stat for files.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License