-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
O-windowsOperating system: WindowsOperating system: Windows
Description
This program will succeed on unix but fail to succeed on windows. The unix behavior is surprising to me!
use std::io::{fs, UserRWX};
fn main() {
fs::mkdir(&Path::new("test"), UserRWX).unwrap();
fs::mkdir(&Path::new("test2"), UserRWX).unwrap();
fs::rename(&Path::new("test"), &Path::new("test2")).unwrap();
}Metadata
Metadata
Assignees
Labels
O-windowsOperating system: WindowsOperating system: Windows