@@ -2370,7 +2370,7 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
23702370#[ doc( alias = "rm" , alias = "unlink" , alias = "DeleteFile" ) ]
23712371#[ stable( feature = "rust1" , since = "1.0.0" ) ]
23722372pub fn remove_file < P : AsRef < Path > > ( path : P ) -> io:: Result < ( ) > {
2373- fs_imp:: unlink ( path. as_ref ( ) )
2373+ fs_imp:: remove_file ( path. as_ref ( ) )
23742374}
23752375
23762376/// Given a path, queries the file system to get information about a file,
@@ -2409,7 +2409,7 @@ pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
24092409#[ doc( alias = "stat" ) ]
24102410#[ stable( feature = "rust1" , since = "1.0.0" ) ]
24112411pub fn metadata < P : AsRef < Path > > ( path : P ) -> io:: Result < Metadata > {
2412- fs_imp:: stat ( path. as_ref ( ) ) . map ( Metadata )
2412+ fs_imp:: metadata ( path. as_ref ( ) ) . map ( Metadata )
24132413}
24142414
24152415/// Queries the metadata about a file without following symlinks.
@@ -2444,7 +2444,7 @@ pub fn metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
24442444#[ doc( alias = "lstat" ) ]
24452445#[ stable( feature = "symlink_metadata" , since = "1.1.0" ) ]
24462446pub fn symlink_metadata < P : AsRef < Path > > ( path : P ) -> io:: Result < Metadata > {
2447- fs_imp:: lstat ( path. as_ref ( ) ) . map ( Metadata )
2447+ fs_imp:: symlink_metadata ( path. as_ref ( ) ) . map ( Metadata )
24482448}
24492449
24502450/// Renames a file or directory to a new name, replacing the original file if
@@ -2598,7 +2598,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
25982598#[ doc( alias = "CreateHardLink" , alias = "linkat" ) ]
25992599#[ stable( feature = "rust1" , since = "1.0.0" ) ]
26002600pub fn hard_link < P : AsRef < Path > , Q : AsRef < Path > > ( original : P , link : Q ) -> io:: Result < ( ) > {
2601- fs_imp:: link ( original. as_ref ( ) , link. as_ref ( ) )
2601+ fs_imp:: hard_link ( original. as_ref ( ) , link. as_ref ( ) )
26022602}
26032603
26042604/// Creates a new symbolic link on the filesystem.
@@ -2664,7 +2664,7 @@ pub fn soft_link<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q) -> io::Re
26642664/// ```
26652665#[ stable( feature = "rust1" , since = "1.0.0" ) ]
26662666pub fn read_link < P : AsRef < Path > > ( path : P ) -> io:: Result < PathBuf > {
2667- fs_imp:: readlink ( path. as_ref ( ) )
2667+ fs_imp:: read_link ( path. as_ref ( ) )
26682668}
26692669
26702670/// Returns the canonical, absolute form of a path with all intermediate
@@ -2840,7 +2840,7 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
28402840#[ doc( alias = "rmdir" , alias = "RemoveDirectory" ) ]
28412841#[ stable( feature = "rust1" , since = "1.0.0" ) ]
28422842pub fn remove_dir < P : AsRef < Path > > ( path : P ) -> io:: Result < ( ) > {
2843- fs_imp:: rmdir ( path. as_ref ( ) )
2843+ fs_imp:: remove_dir ( path. as_ref ( ) )
28442844}
28452845
28462846/// Removes a directory at this path, after removing all its contents. Use
@@ -2967,7 +2967,7 @@ pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
29672967#[ doc( alias = "ls" , alias = "opendir" , alias = "FindFirstFile" , alias = "FindNextFile" ) ]
29682968#[ stable( feature = "rust1" , since = "1.0.0" ) ]
29692969pub fn read_dir < P : AsRef < Path > > ( path : P ) -> io:: Result < ReadDir > {
2970- fs_imp:: readdir ( path. as_ref ( ) ) . map ( ReadDir )
2970+ fs_imp:: read_dir ( path. as_ref ( ) ) . map ( ReadDir )
29712971}
29722972
29732973/// Changes the permissions found on a file or a directory.
@@ -3003,7 +3003,7 @@ pub fn read_dir<P: AsRef<Path>>(path: P) -> io::Result<ReadDir> {
30033003#[ doc( alias = "chmod" , alias = "SetFileAttributes" ) ]
30043004#[ stable( feature = "set_permissions" , since = "1.1.0" ) ]
30053005pub fn set_permissions < P : AsRef < Path > > ( path : P , perm : Permissions ) -> io:: Result < ( ) > {
3006- fs_imp:: set_perm ( path. as_ref ( ) , perm. 0 )
3006+ fs_imp:: set_permissions ( path. as_ref ( ) , perm. 0 )
30073007}
30083008
30093009impl DirBuilder {
0 commit comments