isFile.lua 416 B

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