diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-11-19 22:24:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-19 22:24:45 +0100 |
| commit | d5dca43df663c0f0eca6b4425a82752307e80a5a (patch) | |
| tree | 39a6c963c9453a3fc54154021504849ce14cb4ab /library | |
| parent | c74e5a89c5c508fe31035ee80d63af945128c524 (diff) | |
| parent | 7bffa310426ebcc01cfb1756ae1883118a32366b (diff) | |
| download | rust-d5dca43df663c0f0eca6b4425a82752307e80a5a.tar.gz rust-d5dca43df663c0f0eca6b4425a82752307e80a5a.zip | |
Rollup merge of #133183 - n0toose:improve-remove-dir-docs, r=joboet
Mention std::fs::remove_dir_all in std::fs::remove_dir
Diffstat (limited to 'library')
| -rw-r--r-- | library/std/src/fs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 76fdb1a4ffd..555e8804eab 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -2738,6 +2738,10 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> { /// Removes an empty directory. /// +/// If you want to remove a directory that is not empty, as well as all +/// of its contents recursively, consider using [`remove_dir_all`] +/// instead. +/// /// # Platform-specific behavior /// /// This function currently corresponds to the `rmdir` function on Unix |
