bool pathIsFile(string path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | A path inside the calling resource, or @resource/path for another resource's file. |
Returns
true if the path exists and is a file (not a folder).
Example
if pathIsFile("config.json") then
local config = fromJSON(fileGetContents("config.json"))
end