@@ -1922,7 +1922,7 @@ pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
19221922/// Ok(())
19231923/// }
19241924/// ```
1925- #[ doc( alias = "stat" ) ]
1925+ #[ doc( alias = "stat" , alias = "GetFileAttributes" , alias = "GetFileAttributesEx" ) ]
19261926#[ stable( feature = "rust1" , since = "1.0.0" ) ]
19271927pub fn metadata < P : AsRef < Path > > ( path : P ) -> io:: Result < Metadata > {
19281928 fs_imp:: stat ( path. as_ref ( ) ) . map ( Metadata )
@@ -1957,7 +1957,7 @@ pub fn metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
19571957/// Ok(())
19581958/// }
19591959/// ```
1960- #[ doc( alias = "lstat" ) ]
1960+ #[ doc( alias = "lstat" , alias = "GetFileAttributes" , alias = "GetFileAttributesEx" ) ]
19611961#[ stable( feature = "symlink_metadata" , since = "1.1.0" ) ]
19621962pub fn symlink_metadata < P : AsRef < Path > > ( path : P ) -> io:: Result < Metadata > {
19631963 fs_imp:: lstat ( path. as_ref ( ) ) . map ( Metadata )
@@ -2061,6 +2061,7 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
20612061/// }
20622062/// ```
20632063#[ doc( alias = "cp" ) ]
2064+ #[ doc( alias = "copy_file_range" ) ]
20642065#[ doc( alias = "CopyFile" , alias = "CopyFileEx" ) ]
20652066#[ doc( alias = "fclonefileat" , alias = "fcopyfile" ) ]
20662067#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -2107,7 +2108,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
21072108/// Ok(())
21082109/// }
21092110/// ```
2110- #[ doc( alias = "CreateHardLink" , alias = "linkat" ) ]
2111+ #[ doc( alias = "ln" , alias = " CreateHardLink", alias = "linkat" ) ]
21112112#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21122113pub fn hard_link < P : AsRef < Path > , Q : AsRef < Path > > ( original : P , link : Q ) -> io:: Result < ( ) > {
21132114 fs_imp:: link ( original. as_ref ( ) , link. as_ref ( ) )
@@ -2303,6 +2304,7 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
23032304/// Ok(())
23042305/// }
23052306/// ```
2307+ #[ doc( alias = "mkdir" , alias = "CreateDirectory" ) ]
23062308#[ stable( feature = "rust1" , since = "1.0.0" ) ]
23072309pub fn create_dir_all < P : AsRef < Path > > ( path : P ) -> io:: Result < ( ) > {
23082310 DirBuilder :: new ( ) . recursive ( true ) . create ( path. as_ref ( ) )
@@ -2386,6 +2388,7 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
23862388/// Ok(())
23872389/// }
23882390/// ```
2391+ #[ doc( alias = "rm" ) ]
23892392#[ stable( feature = "rust1" , since = "1.0.0" ) ]
23902393pub fn remove_dir_all < P : AsRef < Path > > ( path : P ) -> io:: Result < ( ) > {
23912394 fs_imp:: remove_dir_all ( path. as_ref ( ) )
0 commit comments