NDepend.API Documentation
HasParentDirectory Property
NDepend.Path Namespace > IPath Interface : HasParentDirectory Property
Gets a value indicating whether this path has a parent directory path
Syntax
bool HasParentDirectory {get;}

Property Value

true if this path has a parent directory path, else returns false.
Remarks
Root directories representing a drive, like C: or D: don't have a parent directory path. Relative path like ".\" or "..\" don't have a parent directory path. Notice that a file path necessarily has a parent directory path.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IPath Interface
IPath Members