lovr.filesystem.remove
EditRemove a file or directory in the save directory.
success = lovr.filesystem.remove(path)
Arguments
Name | Type | Description |
path | string | The file or directory to remove. |
Returns
Name | Type | Description |
success | boolean | Whether the path was removed. |
Notes
A directory can only be removed if it is empty.
To recursively remove a folder, use this function with lovr.filesystem.getDirectoryItems
.