createDirectory.lua 549 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'filesystem-files',
  3. summary = 'Create a directory.',
  4. description = [[
  5. Creates a directory in the save directory. Any parent directories that don't exist will also be
  6. created.
  7. ]],
  8. arguments = {
  9. path = {
  10. type = 'string',
  11. description = 'The directory to create, recursively.'
  12. }
  13. },
  14. returns = {
  15. success = {
  16. type = 'boolean',
  17. description = 'Whether the directory was created.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = { 'path' },
  23. returns = { 'success' }
  24. }
  25. }
  26. }