FileSize
FileSize[file]
gives the size of a file as a quantity.
Details
Examples
open allclose allScope (2)
Generalizations & Extensions (1)
FileSize uses SI prefix values for file size, where a megabyte is 106 bytes:
The resulting Quantity can be converted to other units using UnitConvert:
Applications (1)
Use FileSize with FileSystemMap to inspect the size of various files in a directory:
Properties & Relations (1)
FileSize gives the same number of bytes as FileByteCount:
Text
Wolfram Research (2017), FileSize, Wolfram Language function, https://reference.wolfram.com/language/ref/FileSize.html.
CMS
Wolfram Language. 2017. "FileSize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FileSize.html.
APA
Wolfram Language. (2017). FileSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileSize.html