@@ -2362,7 +2362,7 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
2362
2362
#[ doc( alias = "rm" , alias = "unlink" , alias = "DeleteFile" ) ]
2363
2363
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2364
2364
pub fn remove_file < P : AsRef < Path > > ( path : P ) -> io:: Result < ( ) > {
2365
- fs_imp:: unlink ( path. as_ref ( ) )
2365
+ fs_imp:: remove_file ( path. as_ref ( ) )
2366
2366
}
2367
2367
2368
2368
/// Given a path, queries the file system to get information about a file,
@@ -2401,7 +2401,7 @@ pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
2401
2401
#[ doc( alias = "stat" ) ]
2402
2402
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2403
2403
pub fn metadata < P : AsRef < Path > > ( path : P ) -> io:: Result < Metadata > {
2404
- fs_imp:: stat ( path. as_ref ( ) ) . map ( Metadata )
2404
+ fs_imp:: metadata ( path. as_ref ( ) ) . map ( Metadata )
2405
2405
}
2406
2406
2407
2407
/// Queries the metadata about a file without following symlinks.
@@ -2436,7 +2436,7 @@ pub fn metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
2436
2436
#[ doc( alias = "lstat" ) ]
2437
2437
#[ stable( feature = "symlink_metadata" , since = "1.1.0" ) ]
2438
2438
pub fn symlink_metadata < P : AsRef < Path > > ( path : P ) -> io:: Result < Metadata > {
2439
- fs_imp:: lstat ( path. as_ref ( ) ) . map ( Metadata )
2439
+ fs_imp:: symlink_metadata ( path. as_ref ( ) ) . map ( Metadata )
2440
2440
}
2441
2441
2442
2442
/// Renames a file or directory to a new name, replacing the original file if
@@ -2590,7 +2590,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
2590
2590
#[ doc( alias = "CreateHardLink" , alias = "linkat" ) ]
2591
2591
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2592
2592
pub fn hard_link < P : AsRef < Path > , Q : AsRef < Path > > ( original : P , link : Q ) -> io:: Result < ( ) > {
2593
- fs_imp:: link ( original. as_ref ( ) , link. as_ref ( ) )
2593
+ fs_imp:: hard_link ( original. as_ref ( ) , link. as_ref ( ) )
2594
2594
}
2595
2595
2596
2596
/// Creates a new symbolic link on the filesystem.
@@ -2622,7 +2622,7 @@ pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q) -> io::Re
2622
2622
std::os::windows::fs::{symlink_file, symlink_dir}"
2623
2623
) ]
2624
2624
pub fn soft_link < P : AsRef < Path > , Q : AsRef < Path > > ( original : P , link : Q ) -> io:: Result < ( ) > {
2625
- fs_imp:: symlink ( original. as_ref ( ) , link. as_ref ( ) )
2625
+ fs_imp:: soft_link ( original. as_ref ( ) , link. as_ref ( ) )
2626
2626
}
2627
2627
2628
2628
/// Reads a symbolic link, returning the file that the link points to.
@@ -2656,7 +2656,7 @@ pub fn soft_link<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q) -> io::Re
2656
2656
/// ```
2657
2657
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2658
2658
pub fn read_link < P : AsRef < Path > > ( path : P ) -> io:: Result < PathBuf > {
2659
- fs_imp:: readlink ( path. as_ref ( ) )
2659
+ fs_imp:: read_link ( path. as_ref ( ) )
2660
2660
}
2661
2661
2662
2662
/// Returns the canonical, absolute form of a path with all intermediate
@@ -2832,7 +2832,7 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
2832
2832
#[ doc( alias = "rmdir" , alias = "RemoveDirectory" ) ]
2833
2833
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2834
2834
pub fn remove_dir < P : AsRef < Path > > ( path : P ) -> io:: Result < ( ) > {
2835
- fs_imp:: rmdir ( path. as_ref ( ) )
2835
+ fs_imp:: remove_dir ( path. as_ref ( ) )
2836
2836
}
2837
2837
2838
2838
/// Removes a directory at this path, after removing all its contents. Use
@@ -2959,7 +2959,7 @@ pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
2959
2959
#[ doc( alias = "ls" , alias = "opendir" , alias = "FindFirstFile" , alias = "FindNextFile" ) ]
2960
2960
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2961
2961
pub fn read_dir < P : AsRef < Path > > ( path : P ) -> io:: Result < ReadDir > {
2962
- fs_imp:: readdir ( path. as_ref ( ) ) . map ( ReadDir )
2962
+ fs_imp:: read_dir ( path. as_ref ( ) ) . map ( ReadDir )
2963
2963
}
2964
2964
2965
2965
/// Changes the permissions found on a file or a directory.
@@ -2995,7 +2995,7 @@ pub fn read_dir<P: AsRef<Path>>(path: P) -> io::Result<ReadDir> {
2995
2995
#[ doc( alias = "chmod" , alias = "SetFileAttributes" ) ]
2996
2996
#[ stable( feature = "set_permissions" , since = "1.1.0" ) ]
2997
2997
pub fn set_permissions < P : AsRef < Path > > ( path : P , perm : Permissions ) -> io:: Result < ( ) > {
2998
- fs_imp:: set_perm ( path. as_ref ( ) , perm. 0 )
2998
+ fs_imp:: set_permissions ( path. as_ref ( ) , perm. 0 )
2999
2999
}
3000
3000
3001
3001
impl DirBuilder {
0 commit comments