getDirectoryItems.lua 438 B

123456789101112131415161718
  1. return {
  2. summary = 'Get a list of files in a directory.',
  3. description = 'Returns a sorted table containing all files and folders in a single directory.',
  4. arguments = {
  5. {
  6. name = 'path',
  7. type = 'string',
  8. description = 'The directory.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'table',
  14. type = 'items',
  15. description = 'A table with a string for each file and subfolder in the directory.'
  16. }
  17. }
  18. }