DirectoryGetProperties Method (KernelTransaction, 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, 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.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static Dictionary<string, long> GetProperties(
KernelTransaction transaction,
string path,
DirectoryEnumerationOptions options,
PathFormat pathFormat
)
Public Shared Function GetProperties (
transaction As KernelTransaction,
path As String,
options As DirectoryEnumerationOptions,
pathFormat As PathFormat
) As Dictionary(Of String, Long)
public:
static Dictionary<String^, long long>^ GetProperties(
KernelTransaction^ transaction,
String^ path,
DirectoryEnumerationOptions options,
PathFormat pathFormat
)
static member GetProperties :
transaction : KernelTransaction *
path : string *
options : DirectoryEnumerationOptions *
pathFormat : PathFormat -> Dictionary<string, int64>
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The target directory. - options
- Type: Alphaleonis.Win32.FilesystemDirectoryEnumerationOptions
DirectoryEnumerationOptions flags that specify how the directory is to be enumerated. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
DictionaryString,
Int64A dictionary mapping the keys mentioned above to their respective aggregated values.
Remarks See Also