Re: Cannot get real path for '.'. The file path does not exist or is invalid. Error code: 10
@chaminda: What did you map actually? The home folder of the user? Can you work with that folder with any other SFTP client?
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Cannot get real path for '.'. The file path does not exist or is invalid. Error code: 10
ex.Message: Error getting name of current remote directory
- e {WinSCP.SessionRemoteException: Error getting name of current remote directory. ---> WinSCP.SessionRemoteException: Cannot get real path for '.'.
The file path does not exist or is invalid.
Error code: 10
Error message from server (en): The file path does not exist or is invalid.
Error getting name of current remote directory
Cannot get real path for '.'.
The file path does not exist or is invalid
Error Code: 10
Error message from server(en): The file path does not exist or is invalid.
session.Open(sessionOptions)
.
(dot) and it is not able to resolve this path. Is there a way in .NET code to configure WinSCP to look at a specific directory and not the .
(dot)? I can control it with the Commander interface by going to Advanced > Environment > Directories > Remote directory: (How do I do the equivalent in .NET code?) Or maybe a way for it to accept .
(dot) ? I can't find any code that can be implemented prior to session.Open(sessionOptions)
that would allow me to tell the session what directory it should be in.