Skip to end of banner
Go to start of banner

fileExists

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 1.0.

Syntax

fileExists(path_to_file)

Description

Returns 'true' if the file exists and 'false' otherwise.

Parameters

Parameter name

Type

Required

Description

path_to_file

string

Yes

Specifies the file name you want to search for.

Return type

boolean (true/false)

Example

if(fileExists("C:/someFile.txt")){
    print("The file exists!");
} else {
    print("The file does not exist!");
}

Notes

It is recommended that you use forward slashes ( / ) for file paths.

See also


  • No labels