mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 05:23:07 +00:00
Update std::fs::remove_dir_all documentation
This commit is contained in:
parent
cb748a27d2
commit
32080ad6d0
@ -2042,13 +2042,17 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
|
|||||||
///
|
///
|
||||||
/// # Platform-specific behavior
|
/// # Platform-specific behavior
|
||||||
///
|
///
|
||||||
/// This function currently corresponds to `opendir`, `lstat`, `rm` and `rmdir` functions on Unix
|
/// This function currently corresponds to `openat`, `fdopendir`, `unlinkat` and `lstat` functions
|
||||||
/// and the `FindFirstFile`, `GetFileAttributesEx`, `DeleteFile`, and `RemoveDirectory` functions
|
/// on Unix (except for macOS before version 10.10 and REDOX) and the `CreateFileW`,
|
||||||
/// on Windows.
|
/// `GetFileInformationByHandleEx`, `SetFileInformationByHandle`, and `NtOpenFile` functions on
|
||||||
/// Note that, this [may change in the future][changes].
|
/// Windows. Note that, this [may change in the future][changes].
|
||||||
///
|
///
|
||||||
/// [changes]: io#platform-specific-behavior
|
/// [changes]: io#platform-specific-behavior
|
||||||
///
|
///
|
||||||
|
/// On macOS before version 10.10 and REDOX this function is not protected against time-of-check to
|
||||||
|
/// time-of-use (TOCTOU) race conditions, and should not be used in security-sensitive code on
|
||||||
|
/// those platforms. All other platforms are protected.
|
||||||
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
/// See [`fs::remove_file`] and [`fs::remove_dir`].
|
/// See [`fs::remove_file`] and [`fs::remove_dir`].
|
||||||
|
Loading…
Reference in New Issue
Block a user