How do I get / set current directory?

SFTP doesn't have a concept of current directory. You must always use absolute paths when you refer to the files.

If you use relative paths, the result depends on server implementation (in most cases, the path will be relative to user's home page). Use RequestAbsolutePath() method to convert relative path to absolute.

Ready to get started?

Learn more about SecureBlackbox or download a free trial.

Download Now