- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.SFTPSession.WorkingDirectory
SSH.SFTPSession.WorkingDirectory
Dim WorkingDirectory As String
Gets and sets the current working directory for the SFTP session. Paths that begin with a slash (/
) are interpreted as absolute paths. Paths without a leading slash are interpreted as being relative to the current working directory.
Defaults to /home/username/
, where username
is the name used to authenticate to the server. If that directory doesn't exist on the server then the default working directory is /
.
Attempting to set the WorkingDirectory
to a file or to a directory which doesn't exist will fail.
You can change to the parent directory by assigning a value of ..
to this property.
When setting a new working directory, the tilde character (~
) will be expanded to /home/username
if it appears at the beginning of the path.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.