Click or drag to resize
FileInfoDirectory Property
Gets an instance of the parent directory.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public DirectoryInfo Directory { get; }

Property Value

Type: DirectoryInfo
A DirectoryInfo object representing the parent directory of this file.
Exceptions
ExceptionCondition
DirectoryNotFoundExceptionThe specified path is invalid, such as being on an unmapped drive.
Remarks
To get the parent directory as a string, use the DirectoryName property.
See Also