Lasso Soft Inc. > Home

[File_GetSize]

[File_GetSize] returns the size in bytes of a file. Accepts one parameter, the name of the file to be inspected.

The file tags are protected by four different permissions. The user must have permission for all of the following in order to use this tag:
- Permission to use the tag itself.
- Permission to perform the file operation.
- Permission to work in the directory which contains the files.
- The filename extensions of the files which are being worked with must be allowed in Lasso Administration.

  • Syntax
  • Parameters
[File_GetSize: File Name]
Required Parameters
File Name The name of the file to be checked.
Examples

To display the size of a file in bytes:

Use the [File_GetSize] tag. The following example inspects a file named myfile.txt from the root of the Web serving folder.

[File_GetSize: '/myfile.txt']
Result:
1024
Tag Link [File_GetSize] Category File
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type Integer Security Tag,File
Implementation Internal Sets Lasso 6.0, Lasso 5.0,LDML3x

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft