PowerTCP SSH and SFTP for .NET
ChangeWorkingDirectory Method




Specifies the desired directory. "." has no effect. ".." can be used to move up one directory. Relative and absolute directories are supported. Use "/" as a delimiter.
Changes the working directory.
Syntax
'Declaration
 
Public Sub ChangeWorkingDirectory( _
   ByVal path As String _
) 
'Usage
 
Dim instance As Sftp
Dim path As String
 
instance.ChangeWorkingDirectory(path)
public void ChangeWorkingDirectory( 
   string path
)
public: void ChangeWorkingDirectory( 
   string* path
) 
public:
void ChangeWorkingDirectory( 
   String^ path
) 

Parameters

path
Specifies the desired directory. "." has no effect. ".." can be used to move up one directory. Relative and absolute directories are supported. Use "/" as a delimiter.
Remarks
The new working directory is available in the WorkingDirectory property.When relative filenames and paths are provided to methods in the Sftp class, the value of the WorkingDirectory property is prepended to provided values to create absolute paths for all SFTP server commands.This method only changes the value of the WorkingDirectory property, and does not communicate with the Sftp server.
See Also

Reference

Sftp Class
Sftp Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic