Skip to content

Commit

Permalink
Mention std::fs::remove_dir_all in std::fs::remove_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
n0toose committed Nov 18, 2024
1 parent c602e9a commit 7bffa31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bffa31

Please sign in to comment.