remove.lua 446 B

12345678910111213141516171819
  1. return {
  2. summary = 'Remove a file or directory.',
  3. description = 'Remove a file or directory in the save directory.',
  4. arguments = {
  5. {
  6. name = 'path',
  7. type = 'string',
  8. description = 'The file or directory to remove.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'success',
  14. type = 'boolean',
  15. description = 'Whether the path was removed.'
  16. }
  17. },
  18. notes = 'A directory can only be removed if it is empty.'
  19. }