File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1991,6 +1991,11 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
19911991/// * The file doesn't exist.
19921992/// * The user lacks permissions to remove the file.
19931993///
1994+ /// This function will only ever return an error of kind `NotFound` if the given
1995+ /// path does not exist. Note that the inverse is not true,
1996+ /// ie. if a path does not exist, its removal may fail for a number of reasons,
1997+ /// such as insufficient permissions.
1998+ ///
19941999/// # Examples
19952000///
19962001/// ```no_run
@@ -2448,6 +2453,11 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
24482453/// * The user lacks permissions to remove the directory at the provided `path`.
24492454/// * The directory isn't empty.
24502455///
2456+ /// This function will only ever return an error of kind `NotFound` if the given
2457+ /// path does not exist. Note that the inverse is not true,
2458+ /// ie. if a path does not exist, its removal may fail for a number of reasons,
2459+ /// such as insufficient permissions.
2460+ ///
24512461/// # Examples
24522462///
24532463/// ```no_run
You can’t perform that action at this time.
0 commit comments