webCOMAND

#FILESIZE

Syntax

#FILESIZE(Path)

Parameters

  • Path - File path to file being evaluated, which can be on of three forms:
    • Absolute - Path from the file repository root ("files" folder).  For example: /publications/www.website.com/htdocs/index.html
    • Distribution - Path from Publication Publish Path.  For example: ./images/test.gif
    • Relative - Path from current Publication Procedure Filename path.  For example: attachments/test.pdf

Description

Return the size of the file at the specified path, in number of bytes.

Example

#NEW($FileSize)#FILESIZE('/path/to/file')#ENDNEW
File Size: $FileSize bytes

Result

File Size: 123 bytes