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:
parent
5660db2508
commit
e3ca987f74
11 changed files with 135 additions and 77 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue