Topic "Remote directory"

Author Message
Tracey Allen

Guest


I am using the FTP protocol and do not want to specify a remote directory under Environments because the user is set up to log into a specific directory. However, I keept getting an error message, Error listing directory'/'. Could not retrieve directory listing -a does not specify a valid pathname"

How can I avoid this error?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What version of WinSCP are you using? Have you tried the latest one?
_________________
Martin Prikryl
kaspi

Guest


I have the same problem. Let me explain:

When you don't specify the remote FTP directory, the "/" root directory is taken as default. As I don't have root on that server I am not likely to have access to that directory. If a default directory accessible to that given username can be opened, it will solve the problem IMO.

P.S. I don't know the mechanics, but to me it seems that the server sends a response to the client, where it informs about default directory. I think this is quite easy to fix.

P.P.S. I am fed up with SmartFTP and use WinSCP on a daily basis. I found out just today, that FTP support has been added and many thanks for that. Now I can finally use only WinSCP Smile

With regards,
kaspi (ondrej at honeypot dot cz)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
kaspi wrote:
When you don't specify the remote FTP directory, the "/" root directory is taken as default. As I don't have root on that server I am not likely to have access to that directory. If a default directory accessible to that given username can be opened, it will solve the problem IMO.

Can you post a log file?

Quote:
P.S. I don't know the mechanics, but to me it seems that the server sends a response to the client, where it informs about default directory. I think this is quite easy to fix.

The mechanics is that the server sets current user directory to default directory (home directory) and client asks the server for path to current local directory (PWD command) to display the information to user.
_________________
Martin Prikryl
Guest




prikryl wrote:
kaspi wrote:
When you don't specify the remote FTP directory, the "/" root directory is taken as default. As I don't have root on that server I am not likely to have access to that directory. If a default directory accessible to that given username can be opened, it will solve the problem IMO.

Can you post a log file?

Quote:
P.S. I don't know the mechanics, but to me it seems that the server sends a response to the client, where it informs about default directory. I think this is quite easy to fix.

The mechanics is that the server sets current user directory to default directory (home directory) and client asks the server for path to current local directory (PWD command) to display the information to user.


Log mailed to your personal email given in contacts on your web page.
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License