User Tools

Site Tools


Sidebar

file:filepathexists

FilePathExists()

Function to check whether an absolute file path points to an existing file. This method was originally created by Adobe.

Usage

if(FilePathExists("C:/myfile.txt")) {
    //Do something if the file C:/myfile.txt exists
}

Parameters

Parameter Data type Required Description
absolutepath string Yes The absolute path of the file. This path can be in platform-specific notation or URI notation.

Return values

Value Meaning
true A file exists in the given path
false No file exists in the given path
file/filepathexists.txt · Last modified: 2017/05/25 10:06 (external edit)