You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anthony Headley edited this page Apr 21, 2020
·
2 revisions
FileExists(string: filename) : bool
Brief:
Takes a full file path and returns true if the file exists and false if not.
Paramiters:
Name
Description
Optional
string: filename
Full path of the file to check
Returns:
bool : true = file exists
bool : false = file does not exist
Examples:
localpath=GetPath(26) -- gets the demo shows filder-- build two shows files to look forlocalfiles= {}
files[1] =path..sep.."Demoshow_Fullsize_and_Light.show"files[2] =path..sep.."randomfilename.random"-- loop through the above files and echo the result of the fileforkey, valueinpairs(files) doifFileExists(value) thenEcho(value.." - Exists")
elseEcho(value.." - Does not exist")
endend