Table of Contents

Class Directory

Namespace
CarinaStudio.IO
Assembly
CarinaStudio.AppBase.Core.dll

Provide utility methods for directories.

public static class Directory
Inheritance
Directory
Inherited Members

Methods

ExistsAsync(string?, CancellationToken)

Check whether the given directory exists or not asynchronously.

public static Task<bool> ExistsAsync(string? path, CancellationToken cancellationToken = default)

Parameters

path string

Path to the directory.

cancellationToken CancellationToken

Cancellation.

Returns

Task<bool>

Task of checking existence of directory.