Skip to content

Commit f58e6cc

Browse files
committed
Merge pull request #6 from alexcrichton/pr2
Minor API tweaks here and there
2 parents 5c75b74 + e62f35b commit f58e6cc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

text/0517-io-os-reform.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -730,17 +730,17 @@ passing in Rust strings and literals directly, for example).
730730

731731
* `file_attr` (renamed from `stat`). Take `AsPath` bound. Yield a new
732732
struct, `FileAttr`, with no public fields, but `size`, `kind` and
733-
`perm` accessors. The various `os::platform` modules will offer
733+
`permissions` accessors. The various `os::platform` modules will offer
734734
extension methods on this structure.
735735

736-
* `set_perm` (renamed from `chmod`). Take `AsPath` bound, and a
736+
* `set_permissions` (renamed from `chmod`). Take `AsPath` bound, and a
737737
`FilePermissions` value. The `FilePermissions` type will be revamped
738738
as a struct with private implementation; see below.
739739

740740
**Directories**:
741741

742-
* `make_dir` (renamed from `mkdir`). Take `AsPath` bound.
743-
* `make_dir_all` (renamed from `mkdir_recursive`). Take `AsPath` bound.
742+
* `create_dir` (renamed from `mkdir`). Take `AsPath` bound.
743+
* `create_dir_all` (renamed from `mkdir_recursive`). Take `AsPath` bound.
744744
* `read_dir` (renamed from `readdir`). Take `AsPath` bound. Yield a
745745
newtypes iterator, which yields a new type `DirEntry` which has an
746746
accessor for `Path`, but will eventually provide other information
@@ -753,7 +753,7 @@ passing in Rust strings and literals directly, for example).
753753
**Links**:
754754

755755
* `hard_link` (renamed from `link`). Take `AsPath` bound.
756-
* `sym_link` (renamed from `symlink`). Take `AsPath` bound.
756+
* `soft_link` (renamed from `symlink`). Take `AsPath` bound.
757757
* `read_link` (renamed form `readlink`). Take `AsPath` bound.
758758

759759
#### Files
@@ -765,17 +765,17 @@ use the `AsPath` bound everywhere.
765765
The `stat` method will be renamed to `attr`, yield a `FileAttr`, and
766766
take `&self`.
767767

768-
The `fsync` method will be renamed to `flush`, and `datasync` will be
769-
renamed to `flush_data`. (Although the latter is not available on
768+
The `fsync` method will be renamed to `sync_all`, and `datasync` will be
769+
renamed to `sync_data`. (Although the latter is not available on
770770
Windows, it can be considered an optimization for `flush` and on
771-
Windows behave identically to `flush`, just as it does on some Unix
771+
Windows behave identically to `sync_all`, just as it does on some Unix
772772
filesystems.)
773773

774774
The `path` method wil remain `#[unstable]`, as we do not yet want to
775775
commit to its API.
776776

777-
The `open_mode` function will take an `OpenOptions` struct, which will
778-
encompass today's `FileMode` and `FileAccess` and support a
777+
The `open_opts` function (renamed from `open_mode`) will take an `OpenOptions`
778+
struct, which will encompass today's `FileMode` and `FileAccess` and support a
779779
builder-style API.
780780

781781
#### File kinds

0 commit comments

Comments
 (0)