Click or drag to resize

DirectoryGetProperties Method (String, DirectoryEnumerationOptions, PathFormat)

[AlphaFS] Gets the properties of the particular directory without following any symbolic links or mount points.

Properties include aggregated info from FileAttributes of each encountered file system object, plus additional ones: Total, File, Size and Error.

Total: is the total number of enumerated objects.

File: is the total number of files. File is considered when object is neither Directory nor ReparsePoint.

Size: is the total size of enumerated objects.

Error: is the total number of errors encountered during enumeration.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
public static Dictionary<string, long> GetProperties(
	string path,
	DirectoryEnumerationOptions options,
	PathFormat pathFormat


Type: SystemString
The target directory.
Type: Alphaleonis.Win32.FilesystemDirectoryEnumerationOptions
DirectoryEnumerationOptions flags that specify how the directory is to be enumerated.
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).

Return Value

Type: DictionaryString, Int64
A dictionary mapping the keys mentioned above to their respective aggregated values.
Directory: is an object which has Directory attribute without ReparsePoint one.
See Also