We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
remove_dir_all
DirectoryNotEmpty
1 parent f433fa4 commit 3a372e3Copy full SHA for 3a372e3
library/std/src/fs.rs
@@ -2874,6 +2874,8 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
2874
///
2875
/// Consider ignoring the error if validating the removal is not required for your use case.
2876
2877
+/// This function may return [`io::ErrorKind::DirectoryNotEmpty`] if the directory is concurrently
2878
+/// written into, which typically indicates some contents were removed but not all.
2879
/// [`io::ErrorKind::NotFound`] is only returned if no removal occurs.
2880
2881
/// [`fs::remove_file`]: remove_file
0 commit comments