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