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.
TrFile_GetFolderSize ( switches ; folderPath )
|switches||not used, reserved for future use. Leave blank or put "-Unused"|
|folderPath||the path to the folder for which you want the information|
Data type returned
The size (in number of bytes) of the folder.
Troi File Plug-in 9.0
FileMaker Pro 13 to 17
You can use FileMaker styled paths, like “filewin:/C:/MyFiles/MyFolder”.
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.