We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c602e9a commit 7bffa31Copy full SHA for 7bffa31
library/std/src/fs.rs
@@ -2738,6 +2738,10 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
2738
2739
/// Removes an empty directory.
2740
///
2741
+/// If you want to remove a directory that is not empty, as well as all
2742
+/// of its contents recursively, consider using [`remove_dir_all`]
2743
+/// instead.
2744
+///
2745
/// # Platform-specific behavior
2746
2747
/// This function currently corresponds to the `rmdir` function on Unix
0 commit comments