Lua:FSDirectory

Lua:FSDirectory

From BeamNG


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