Description
Query file system information about the scanned directory with the passed ID.
Syntax
GetFolderInformation (FolderID : <Integer>, InfoType : <Shortint>, UsePlainValues : <Boolean>, NodeData : <OLEVariant>)
Parameters
FolderID |
The ID referring to the folder, from which data should be extracted. |
InfoType |
Defines the kind of requested information about a directory. |
UsePlainValues |
Indicates, if size units and thousand separator will be included in the export, or if sizes are exported as plain values. |
NodeData |
(Out Parameter) The delivered data. This is the place, to define a storing place for the returned data, you wanted to get. |
Example
RootFolderID = SOS.RootFolderID
SOS.GetFolderInformation RootFolderID, 2, False, OutParameter
The call of GetFolderInformation() gathers the size (2 = "Size of the object") of the current root directory, and returns it in a OLEVariant variable called "OutParameter".
"OutParameter" can be accessed like every other variable of the variant type, and it's content can be used for printing.
Remarks
This function will query the latest scan information about a scanned directory. To get information from earlier scans, please use GetHistoricalFolderInformation().