AgentFileStore.CreateDirectoryAsync(String, CancellationToken) Method

Definition

Ensures a directory exists, creating it if necessary.

public abstract System.Threading.Tasks.Task CreateDirectoryAsync(string path, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateDirectoryAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function CreateDirectoryAsync (path As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

path
String

The relative path of the directory to create.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

A task representing the asynchronous operation.

Applies to