Closed tmpfs closed 3 years ago
Should return the size of a file in bytes as a u64. Absolute paths should be resolved relative to the site directory.
u64
site
So that we can do:
{{bytes (file-size /downloads/big-file.mp4)}}
This is useful when a site wants to offer a file for download and show a human readable version of the file size.
/cc @chrism
Should return the size of a file in bytes as a
u64
. Absolute paths should be resolved relative to thesite
directory.So that we can do:
This is useful when a site wants to offer a file for download and show a human readable version of the file size.
/cc @chrism