@@ -730,17 +730,17 @@ passing in Rust strings and literals directly, for example).
730
730
731
731
* ` file_attr ` (renamed from ` stat ` ). Take ` AsPath ` bound. Yield a new
732
732
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
734
734
extension methods on this structure.
735
735
736
- * ` set_perm ` (renamed from ` chmod ` ). Take ` AsPath ` bound, and a
736
+ * ` set_permissions ` (renamed from ` chmod ` ). Take ` AsPath ` bound, and a
737
737
` FilePermissions ` value. The ` FilePermissions ` type will be revamped
738
738
as a struct with private implementation; see below.
739
739
740
740
** Directories** :
741
741
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.
744
744
* ` read_dir ` (renamed from ` readdir ` ). Take ` AsPath ` bound. Yield a
745
745
newtypes iterator, which yields a new type ` DirEntry ` which has an
746
746
accessor for ` Path ` , but will eventually provide other information
@@ -753,7 +753,7 @@ passing in Rust strings and literals directly, for example).
753
753
** Links** :
754
754
755
755
* ` 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.
757
757
* ` read_link ` (renamed form ` readlink ` ). Take ` AsPath ` bound.
758
758
759
759
#### Files
@@ -765,17 +765,17 @@ use the `AsPath` bound everywhere.
765
765
The ` stat ` method will be renamed to ` attr ` , yield a ` FileAttr ` , and
766
766
take ` &self ` .
767
767
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
770
770
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
772
772
filesystems.)
773
773
774
774
The ` path ` method wil remain ` #[unstable] ` , as we do not yet want to
775
775
commit to its API.
776
776
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
779
779
builder-style API.
780
780
781
781
#### File kinds
0 commit comments