Documenting the Directory api
@@ -8,6 +8,7 @@ The `io` module provides an interface to the host machine's file system, in orde
It contains the following classes:
* [FileSystem](#filesystem)
+* [Directory](#directory)
## FileSystem
@@ -20,3 +21,17 @@ This is a blocking operation, and so execution will stop while the file is loade
#### `static save(path: String, buffer: String): Void`
Given a valid file `path`, this will create or overwrite the file the data in the `buffer` String object.
This is a blocking operation, and so execution will stop while the file is saved.
+
+## Directory
+
+### Instance Methods
+
+#### `construct open(path: String): Directory`
+Opens the named path for inspection
+
+### Instance Fields
+#### `directories: List<String>`
+Returns a list of all directories contained in the directory.
+
+#### `files: List<String>`
+Returns a list of all files in the directory.
