Lua:FSDirectory
From BeamNG
Dir = FS:openDirectory(directory) --Opens directory
FS:fileExists(directory..""..file) --Checks if file exists
Dir = FS:openDirectory(directory) --Opens directory
FS:fileExists(directory..""..file) --Checks if file exists