isDirectory.lua 435 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Check whether a path is a directory.',
  3. description = 'Check if a path exists and is a directory.',
  4. arguments = {
  5. {
  6. name = 'path',
  7. type = 'string',
  8. description = 'The path to check.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'isDirectory',
  14. type = 'boolean',
  15. description = 'Whether or not the path is a directory.'
  16. }
  17. },
  18. related = {
  19. 'lovr.filesystem.isFile'
  20. }
  21. }