SecureBlackbox 16: How do I get / set the current directory?

Note: This article applies only to SecureBlackbox Legacy. For future development please consider using the latest version.

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

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

We appreciate your feedback.  If you have any questions, comments, or suggestions about this article please contact our support team at kb@nsoftware.com.