This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +2563
-168
lines changed Expand file tree Collapse file tree 4 files changed +2563
-168
lines changed Original file line number Diff line number Diff line change @@ -2446,14 +2446,12 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
2446
2446
/// # Platform-specific behavior
2447
2447
///
2448
2448
/// This function currently corresponds to the `rename` function on Unix
2449
- /// and the `SetFileInformationByHandle ` function on Windows.
2449
+ /// and the `MoveFileEx ` function with the `MOVEFILE_REPLACE_EXISTING` flag on Windows.
2450
2450
///
2451
2451
/// Because of this, the behavior when both `from` and `to` exist differs. On
2452
2452
/// Unix, if `from` is a directory, `to` must also be an (empty) directory. If
2453
- /// `from` is not a directory, `to` must also be not a directory. The behavior
2454
- /// on Windows is the same on Windows 10 1607 and higher if `FileRenameInfoEx`
2455
- /// is supported by the filesystem; otherwise, `from` can be anything, but
2456
- /// `to` must *not* be a directory.
2453
+ /// `from` is not a directory, `to` must also be not a directory. In contrast,
2454
+ /// on Windows, `from` can be anything, but `to` must *not* be a directory.
2457
2455
///
2458
2456
/// Note that, this [may change in the future][changes].
2459
2457
///
You can’t perform that action at this time.
0 commit comments