Table of Contents

Method CreateDirectoryAsync

Namespace
SshSharp.Sftp
Assembly
SshSharp.dll

CreateDirectoryAsync(string, UnixFileMode?, CancellationToken)

Creates a directory, with permissions if given (the server's umask applies).

public Task CreateDirectoryAsync(string path, UnixFileMode? permissions = null, CancellationToken cancellationToken = default)

Parameters

path string
permissions UnixFileMode?
cancellationToken CancellationToken

Returns

Task

Exceptions

SftpException

It exists already, the parent does not exist, or another error.