File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2237,7 +2237,7 @@ impl Path {
2237
2237
fs:: metadata ( self ) . is_ok ( )
2238
2238
}
2239
2239
2240
- /// Returns whether the path is pointing at a regular file.
2240
+ /// Returns whether the path exists on disk and is pointing at a regular file.
2241
2241
///
2242
2242
/// This function will traverse symbolic links to query information about the
2243
2243
/// destination file. In case of broken symbolic links this will return `false`.
@@ -2266,7 +2266,7 @@ impl Path {
2266
2266
fs:: metadata ( self ) . map ( |m| m. is_file ( ) ) . unwrap_or ( false )
2267
2267
}
2268
2268
2269
- /// Returns whether the path is pointing at a directory.
2269
+ /// Returns whether the path exists on disk and is pointing at a directory.
2270
2270
///
2271
2271
/// This function will traverse symbolic links to query information about the
2272
2272
/// destination file. In case of broken symbolic links this will return `false`.
You can’t perform that action at this time.
0 commit comments