Tag Link | [File_Exists] | Category | File |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 3.0 |
Change | Unchanged | Data Source | Any |
Output Type | Boolean | Security | Tag, File |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x |
[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 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.
[File_Exists: File Name]
Required Parameters | |
---|---|
File Name | The name of the file/directory to be checked. |
To check whether a file exists:
Use the [File_Exists] tag. The following example inspects a file named myfile.txt from the root of the Web serving folder.
[File_Exists: '/myfile.txt']
True
Substitution | ||
---|---|---|
|
|
|