AdlsClient.CreateDirectoryAsync(String, String, CancellationToken) Method

Definition

Asynchronous API to create a directory.

public virtual System.Threading.Tasks.Task<bool> CreateDirectoryAsync (string dirName, string octalPermission = default, System.Threading.CancellationToken cancelToken = default);
abstract member CreateDirectoryAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateDirectoryAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateDirectoryAsync (dirName As String, Optional octalPermission As String = Nothing, Optional cancelToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

dirName
System.String

Name of directory

octalPermission
System.String

Octal permission

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task<System.Boolean>

true if it creates the directory else false

Applies to