Rename the file permission statics in std::io to be uppercase
For example, this renames `GroupRWX` to `GROUP_RWX`, and deprecates the old name. Code using these statics should be updated accordingly.
This commit is contained in:
@@ -618,7 +618,7 @@ fn write(dst: Path, contents: &[u8]) -> io::IoResult<()> {
|
||||
/// skipping if the directory already exists.
|
||||
fn mkdir(path: &Path) -> io::IoResult<()> {
|
||||
if !path.exists() {
|
||||
fs::mkdir(path, io::UserRWX)
|
||||
fs::mkdir(path, io::USER_RWX)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user