Skip to content

Commit

Permalink
Add File already exists error doc to hard_link function
Browse files Browse the repository at this point in the history
If the link path already exists, the error `AlreadyExists`
is returned. This commit adds this error to the docs.
  • Loading branch information
Harshit933 authored and gitbot committed Feb 20, 2025
1 parent b170e81 commit d8c1039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2529,6 +2529,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
/// limited to just these cases:
///
/// * The `original` path is not a file or doesn't exist.
/// * The 'link' path already exists.
///
/// # Examples
///
Expand Down

0 comments on commit d8c1039

Please sign in to comment.