Lasso Soft Inc. > Home

[ File_Exists ]

Method

[File_Exists] returns True if the file or directory exists. Accepts one parameter, the name of the file or directory to be inspected.

The file tags are protected by four different permissions. The user must have permission to work in the parent directory.

NOTE: This method is included for backwards compatibility and is functionally equivalent to [file(#path)->exists]

  • Syntax
File_Exists('string')
Examples
  • Beginner

To check whether a file exists:

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

Code

File_Exists('/myfile.txt')

Result

true

Recent Comments

No Comments found

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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft