More file system checking functions:

- Stat#isFile
- Stat#isDirectory
- Directory.exists()
- File.exists()
This commit is contained in:
Bob Nystrom
2016-02-21 12:23:33 -08:00
parent c6148f8941
commit 60162575ee
15 changed files with 149 additions and 28 deletions
+5
View File
@@ -4,6 +4,11 @@ A directory on the file system.
## Static Methods
### Directory.**exists**(path)
Whether a directory exists at `path`. This returns `false` for files or other
special file system entities.
### Directory.**list**(path)
Lists the contents of the directory at `path`. Returns a sorted list of path