Function rustc_lint::util::fs::link_or_copy
[−]
[src]
pub fn link_or_copy<P, Q>(p: P, q: Q) -> Result<LinkOrCopy, Error> where P: AsRef<Path>, Q: AsRef<Path>
🔬 This is a nightly-only experimental API. (
rustc_private
)Copy p
into q
, preferring to use hard-linking if possible. If
q
already exists, it is removed first.
The result indicates which of the two operations has been performed.