ES3.FileExists
public static bool FileExists(string filePath, ES3Settings settings)
Description
Checks whether a file exists.
Parameters
[table th=”0″]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.”[/table]
Returns
True if the file exists, otherwise false.
Examples
C#
// Checks whether a file exists before loading a key from it. if(ES3.FileExists("myFile.es3")) myInt = ES3.Load<int>("myInt", "myFile.es3");
JS
// Checks whether a file exists before loading a key from it. if(ES3.FileExists("myFile.es3")) myInt = ES3.Load.<int>("myInt", "myFile.es3");