File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1406,11 +1406,11 @@ impl Permissions {
1406
1406
/// On Unix-based platforms this checks if *any* of the owner, group or others
1407
1407
/// write permission bits are set. It does not check if the current
1408
1408
/// user is in the file's assigned group. It also does not check ACLs.
1409
- /// Therefore even if this returns false you may not be able to write to the
1410
- /// file, and vice versa. The [`PermissionsExt`] trait gives direct access
1411
- /// to the permission bits but also does not read ACLs. If you need to
1412
- /// accurately know whether or not a file is writable use the `access()`
1413
- /// function from libc.
1409
+ /// Therefore the return value of this function cannot be relied upon
1410
+ /// to predict whether attempts to read or write the file will actually succeed.
1411
+ /// The [`PermissionsExt`] trait gives direct access to the permission bits but
1412
+ /// also does not read ACLs. If you need to accurately know whether or not a file
1413
+ /// is writable use the `access()` function from libc.
1414
1414
///
1415
1415
/// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt
1416
1416
///
You can’t perform that action at this time.
0 commit comments