Skip to content

Commit

Permalink
update std::fs
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jul 27, 2023
1 parent c44a1e3 commit 072bb8d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/standard-library/std-fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,23 @@ Deletes named file.
---

```
fn create_directory(path: str): FsError
fn create_dir(path: str): FsError
```
Creates directory.

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)
```
Expand Down Expand Up @@ -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

---

Expand Down

0 comments on commit 072bb8d

Please sign in to comment.