| 12345678910111213141516171819202122232425262728 |
- return {
- tag = 'filesystem-files',
- summary = 'Remove a file or directory.',
- description = 'Remove a file or directory in the save directory.',
- arguments = {
- path = {
- type = 'string',
- description = 'The file or directory to remove.'
- }
- },
- returns = {
- success = {
- type = 'boolean',
- description = 'Whether the path was removed.'
- }
- },
- variants = {
- {
- arguments = { 'path' },
- returns = { 'success' }
- }
- },
- notes = [[
- A directory can only be removed if it is empty.
- To recursively remove a folder, use this function with `lovr.filesystem.getDirectoryItems`.
- ]]
- }
|