file.bytesInFolder

Syntax file.bytesInFolder (path)

Params path is a legal path name to the folder whose bytes you wish to count.

Action Counts the number of bytes of all files stored in the indicated folder and its sub-folders.

Returns Number of bytes in the indicated folder.

Examples file.bytesInFolder ("C:\\WINNT\\")

   » 347978674

string.megabyteString (file.bytesInFolder (file.folderFromPath (Frontier.getProgramPath ())))

   » 38.8MB

file.bytesInFolder ("System:System Folder:")

   » 7732685

Notes This verb determines the count by traversing the whole structure, which can be time-consuming.

See Also file.size

file.bytesOnVolume

string.megabyteString

Discuss