DirectoryExistsAsync(string directoryName) Method

Returns a value indicating whether the specified directory exists.

Syntax

public virtual Task<bool> DirectoryExistsAsync(string directoryName)

Parameters

directoryName
Type: string

The name of the directory.

Returns

Value indicating whether the directory exists.