diff --git a/src/standard-library/std-fs.md b/src/standard-library/std-fs.md index 6c6a89a..95ea7b9 100644 --- a/src/standard-library/std-fs.md +++ b/src/standard-library/std-fs.md @@ -38,7 +38,7 @@ Deletes named file. --- ``` -fn create_directory(path: str): FsError +fn create_dir(path: str): FsError ``` Creates directory. @@ -46,6 +46,15 @@ Possible errors: `Denied` `Exist` `ReadOnly` `NoSpace` --- +``` +fn remove_dir(path: str): FsError +``` +Removes empty directory. + +Possible errors: `Denied` `NotExist` `NotEmpty` `SyncIO` `IO` `Loop` `NotDir` + +--- + ``` fn open(path: str, flag: OFlag, mode: int): (&File, FsError) ``` @@ -146,6 +155,7 @@ Possible errors: `InvalidDescriptor` `Signal` `IO` - `NoDest`: No such device or address - `Buffer`: No buffer space available - `BadMessage`: Not a data message +- `NotEmpty`: Not empty ---