File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ impl FileExt for fs::File {
68
68
/// Unix-specific extensions to `Permissions`
69
69
#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
70
70
pub trait PermissionsExt {
71
- /// Returns the 12 least significant bits of `st_mode` which are the
72
- /// standard Unix permissions for this file.
71
+ /// Returns the underlying raw `st_mode` bits that contain the standard
72
+ /// Unix permissions for this file.
73
73
///
74
74
/// # Examples
75
75
///
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub struct DirBuilder { mode: mode_t }
95
95
impl FileAttr {
96
96
pub fn size ( & self ) -> u64 { self . stat . st_size as u64 }
97
97
pub fn perm ( & self ) -> FilePermissions {
98
- FilePermissions { mode : ( self . stat . st_mode as mode_t ) & 0o7777 }
98
+ FilePermissions { mode : ( self . stat . st_mode as mode_t ) }
99
99
}
100
100
101
101
pub fn file_type ( & self ) -> FileType {
You can’t perform that action at this time.
0 commit comments