gives the size of a file as a quantity.
- FileSize returns a Quantity object.
- FileSize uses units of bytes, kilobytes, megabytes, etc. to give a conveniently readable representation of the file size.
- The file in FileSize can be specified by giving the path to the file as a string or a File object.
- FileSize also works with cloud objects.
Examplesopen allclose all
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:
Properties & Relations (1)
Introduced in 2017