fileexists(
PATH
)

The fileexists( function returns true if a file exists, false if it does not.


Parameters

This function has one parameter:

path – is a path to the file, including the file name (see Files and Folders for more information about file paths).


Description

This function checks to see if a file exists.

if fileexists("~/Documents/news.txt") = false()
    message "No news available!"
endif
Legacy Syntax (Separate Folder and File Parameters)

In older versions of Panorama (6.0 and earlier) the fileexists( had two parameters, folderid and filename. To maintain compatibility with older databases, two parameters will still work, as shown in this example:

fileexists(folder("~/Documentation"),"news.txt")

For new databases you’ll probably find it easier to use the single parameter mode.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now may have either one parameter (path) or two (folder, path).