Available since Version 1.0.
Checks if a file exists at the specified path.
Syntax
File.Exists( path )Arguments
- path (string): The path of the file to check.
Return Values
- (boolean): Returns true if the file exists, or false if it does not exist.
Examples
local exists = File.Exists("path/to/file.txt")
if exists then
print("File exists!")
end