File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,8 @@ pub trait PathExt {
1211
1211
fn read_dir ( & self ) -> io:: Result < ReadDir > ;
1212
1212
1213
1213
/// Boolean value indicator whether the underlying file exists on the local
1214
- /// filesystem. Returns false in exactly the cases where `fs::stat` fails.
1214
+ /// filesystem. Returns false in exactly the cases where `fs::metadata`
1215
+ /// fails.
1215
1216
fn exists ( & self ) -> bool ;
1216
1217
1217
1218
/// Whether the underlying implementation (be it a file path, or something
Original file line number Diff line number Diff line change @@ -1832,7 +1832,8 @@ impl Path {
1832
1832
}
1833
1833
1834
1834
/// Boolean value indicator whether the underlying file exists on the local
1835
- /// filesystem. Returns false in exactly the cases where `fs::stat` fails.
1835
+ /// filesystem. Returns false in exactly the cases where `fs::metadata`
1836
+ /// fails.
1836
1837
#[ stable( feature = "path_ext" , since = "1.5.0" ) ]
1837
1838
pub fn exists ( & self ) -> bool {
1838
1839
fs:: metadata ( self ) . is_ok ( )
You can’t perform that action at this time.
0 commit comments