Browse Source

Improve isFile and isDirectory;

bjorn 7 years ago
parent
commit
d0ade5ad21
2 changed files with 8 additions and 2 deletions
  1. 4 1
      api/lovr/filesystem/isDirectory.lua
  2. 4 1
      api/lovr/filesystem/isFile.lua

+ 4 - 1
api/lovr/filesystem/isDirectory.lua

@@ -1,6 +1,6 @@
 return {
   summary = 'Check whether a path is a directory.',
-  description = 'Check if a path is a directory.',
+  description = 'Check if a path exists and is a directory.',
   arguments = {
     {
       name = 'path',
@@ -14,5 +14,8 @@ return {
       type = 'boolean',
       description = 'Whether or not path is a directory.'
     }
+  },
+  related = {
+    'lovr.filesystem.isFile'
   }
 }

+ 4 - 1
api/lovr/filesystem/isFile.lua

@@ -1,6 +1,6 @@
 return {
   summary = 'Check whether a path is a file.',
-  description = 'Check if a path is a file.',
+  description = 'Check if a path exists and is a file.',
   arguments = {
     {
       name = 'path',
@@ -14,5 +14,8 @@ return {
       type = 'boolean',
       description = 'Whether or not path is a file.'
     }
+  },
+  related = {
+    'lovr.filesystem.isDirectory'
   }
 }