Perlaccess : Tutorials : File and Directory
File Size (10.6)
by Jacob A. Wheeler
http://www.bigresources.com

The #fsize & #config Directives...

To insert the current file size, you would use the following directive and attribute:

Looks like: 2.9K
Code: <!--#fsize virtual="10.6.html" -->

Want to display the file size in bytes instead? Use the following:

Looks like: 2,969 bytes
Code: <!--#config sizefmt="bytes" --><!--#fsize virtual="10.6.html" --> bytes

NOTE: You can grab the file size of any file you wish! In the above example I just used the current page's file size (10.6.html).

Custom Date/Time

<< Back