pathIsDirectory
Shared
Tells whether a path is a folder.
bool pathIsDirectory(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 folder.
Example
if not pathIsDirectory("saves") then
fileCreate("saves/.keep")
end