Back to product page

MakeDir method


Creates directory on the server.

Type

Void

Syntax

  • C#
  • VB.NET
public Void MakeDir();

public Void MakeDir(String RemotePath);
The MakeDir(RemotePath) syntax has these parts:
RemotePathFull path to directory that should be created.

public Sub MakeDir()

public Sub MakeDir(ByVal RemotePath As String)
The MakeDir(RemotePath) syntax has these parts:
RemotePathFull path to directory that should be created.

Remarks

his method will create directory on remote server, if possible. Once completed, Done event will be fired. If no error occurs, Error argument in Done event will be set to null. If error occurred, Error will contain description for the error.

By definition, you should not expect from server to create directories recursively. In other words, if you specify something like "/tmp/test/a/b/c" for RemotePath, and directory "/tmp/test" does not exist - most probably you will get an error from the server. However - it is possible that some server-side implementations also support this feature.

No wildcards can be used for RemotePath argument. RFC protocol specification for SFTP does not allow them.

Platforms

Windows