FileSystem.isDirectory

bool isDirectory(string path, bool noFollow = false)

Returns true when path exists and is a directory.

Remarks

This is a convenience probe. It returns false for files, missing paths, links or reparse points when noFollow is true, and errors that prevent reliable probing. By default, links and directory reparse points are followed.

Parameters

string
path

Path to probe.

bool
noFollow = false

When true, symbolic links and Windows directory reparse points are not considered directories themselves.

Generated with campc 0.14.0-preview.1.