Move io::file to io::fs and fns out of File
This renames the `file` module to `fs` because that more accurately describes its current purpose (manipulating the filesystem, not just files). Additionally, this adds an UnstableFileStat structure as a nested structure of FileStat to signify that the fields should not be depended on. The structure is currently flagged with #[unstable], but it's unlikely that it has much meaning. Closes #10241
This commit is contained in:
parent
f19d083362
commit
3c3ed1499a
31 changed files with 491 additions and 477 deletions
|
@ -41,7 +41,7 @@ use std::hashmap::{HashMap, HashSet};
|
|||
use std::local_data;
|
||||
use std::rt::io::buffered::BufferedWriter;
|
||||
use std::rt::io;
|
||||
use std::rt::io::file;
|
||||
use std::rt::io::fs;
|
||||
use std::rt::io::File;
|
||||
use std::os;
|
||||
use std::str;
|
||||
|
@ -326,7 +326,7 @@ fn mkdir(path: &Path) {
|
|||
fail!()
|
||||
}).inside {
|
||||
if !path.is_dir() {
|
||||
file::mkdir(path, io::UserRWX);
|
||||
fs::mkdir(path, io::UserRWX);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue