Method CreateDirectoryAsync
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
pathstringpermissionsUnixFileMode?cancellationTokenCancellationToken
Returns
Exceptions
- SftpException
It exists already, the parent does not exist, or another error.