Onetastic Macro Documentation >
>
>
FileSystem_GetFileSize FileSystem_GetFileSize
Returns the size of a file. If the file doesn't exist or if this information cannot be obtained, returns -1.
Syntax
Integer FileSystem_GetFileSize(File|String file)
Parameters
- File|String file
- File to return the size of. This can either be a File object or a String that contains the full path to the file.
Examples
$size = FileSystem_GetFileSize("c:\\temp\\1.txt")
if ($size >= 0)
|