Skip to content

os.exists

madra.net edited this page Mar 15, 2020 · 1 revision

os.exists(path string) bool

Check whether a file exists:

Example:

if os.exists("/path/to/somefile.txt") 
{
//do stuff with file
}

Clone this wiki locally