Skip to content

Commit 577bbac

Browse files
committed
Add note about filesystems to fs::rename
Fixes #24816
1 parent 6cd7486 commit 577bbac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,8 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
844844

845845
/// Rename a file or directory to a new name.
846846
///
847+
/// This will not work if the new name is on a different mount point.
848+
///
847849
/// # Errors
848850
///
849851
/// This function will return an error if the provided `from` doesn't exist, if

0 commit comments

Comments
 (0)