The sizes of files with certain extensions are returned with the
type of file prefixed. For example, the size of a 12 KB .xlsx
file is
returned as Excel 12 KB
. The complete list of explicitly catered-for file
extensions and their prefixes are as follows:
.xls
, .xlsb
, .xlsm
and .xlsx
files are
prefixed with Excel
.csv
files are prefixed with CSV
.sav
and .zsav
files are prefixed with SPSS
.doc
, .docm
and .docx
files are prefixed with
Word
.rds
files are prefixed with RDS
.txt
files are prefixed with Text
,
.fst
files are prefixed with FST
,
.pdf
files are prefixed with PDF
,
.tsv
files are prefixed with TSV
,
.html
files are prefixed with HTML
,
.ppt
, .pptm
and .pptx
files are prefixed with
PowerPoint
,
.md
files are prefixed with Markdown
Files with extensions not contained within this list will have their size
returned with no prefix. To request that a certain extension be explicitly
catered for, please create an issue on
GitHub.
File sizes are returned as the appropriate multiple of the unit byte
(bytes (B), kilobytes (KB), megabytes (MB), etc.). Each multiple is taken to
be 1,024 units of the preceding denomination.