ES3.FileExists
Description
Checks whether a file exists.
Parameters
filePath | [Optional] The relative or absolute path of the file we want to check the existence of. |
settings |
[Optional] The settings we want to use to override the default settings. |
Returns
True if the file exists, otherwise false.
Examples
C#
1 2 3 |
// Checks whether a file exists before loading a key from it. if(ES3.FileExists("myFile.es3")) myInt = ES3.Load<int>("myInt", "myFile.es3"); |
JS
1 2 3 |
// Checks whether a file exists before loading a key from it. if(ES3.FileExists("myFile.es3")) myInt = ES3.Load.<int>("myInt", "myFile.es3"); |