Otter SDK Reference
Version:

Exists(string path) Method

Returns a value indicating whether the specified directory exists.

Syntax

public static bool Exists(string path)

Parameters

path
Type: string

The path of the directory to check for.

Returns

True if the directory exists; otherwise false.

Exceptions

System.ArgumentNullException

path is null (Nothing in Visual Basic) or empty.