![]() |
TrFile_GetFolderSize |
Returns the size for the folder specified by the folderPath. The size is the total size of all the files in the folder and subfolders.
Syntax
TrFile_GetFolderSize ( switches ; folderPath )
Parameters
switches | not used, reserved for future use. Leave blank or put "-Unused" |
folderPath | the path to the folder for which you want the information |
Returned Result
Data type returned
Number
Result
The size (in number of bytes) of the folder.
Originated in
Troi File Plug-in 9.0
Compatibility
FileMaker Pro 16 to 19
Considerations
You can use FileMaker styled paths, like “filewin:/C:/MyFiles/MyFolder”.
Example
Assume there is a folder “MyData” with several files in it. Then:
Set Variable [ $FolderSize; TrFile_GetFolderSize ("-Unused" ; "Mydisk:MyData" ) ]
might return 1048576 (= 1 Mb) which is the size used of the files in the folder.
Used in example file
ListFolder.fmp12
Related functions
TrFile_GetDataSize |
TrFile_GetFileSize |
TrFile_ListFolder |
Related topics
Troi File Plug-in online help (overview)