Functions for Files

"It's still web development, it's just way easier!"

Files

Type Description Example Result
accessed <#/default.wrival:accessed> Last access time. 12/17/2017 03:32:47 am
accessedepoch <#/default.wrival:accessedepoch> Last access time as an epoch. 1513510367
binary <#/default.wrival:binary> File is binary (True or False). False
bytes <#/default.wrival:bytes> File size in bytes. 2960
exec <#/_/files/testperl.pl:exec> Execute and embed the output of a CGI file. My Perl Script!
exists <#/default.wrival:exists> File exists (True or False). True
filename <#/default.wrival:filename> File name. default
filetype <#/default.wrival:filetype> File type. wrival
integrity <#"Pages":integrity> A process that is used by Wrival CMS for making sure that the server's files match what the Wrival CMS has registered. Acceptable values may be Templates, Pages, Objects, Folders, or Users. (returns nothing)
modified <#/default.wrival:modified> Last modified time. 03/01/2015 12:35:59 pm
modifiedepoch <#/default.wrival:modifiedepoch> Last modified time as an epoch. 1425242159
nonetrue <#"1,2,3":test=" == 4",each="",nonetrue="None True"> If no each, eachfalse, loop, or table's tests were True.
path <#/reference/default.wrival:path> The file's path. /reference/
pixels <#/_/templates/Main/wrival.gif:pixels> If files has a file type listed in IMAGE_TYPES return the image size in pixels as "W x H" (width x height). 150 x 80
pixelheight <#/_/templates/Main/wrival.gif:pixelheight> If files has a file type listed in IMAGE_TYPES to return the image size's height in pixels. 80
pixelwidth <#/_/templates/Main/wrival.gif:pixelwidth> If files has a file type listed in IMAGE_TYPES to return the image size's width in pixels. 150
size <#/reference/:size> Return the total size in bytes of a folder with recursion. 0
types <#/:types="ico"> Return the list of files with only the file types included (/ for folders, !/ for all but folders, -T for text-based, -B for binary). For example, types="/,ico" would return all folders and ico files. favicon.ico