pub fn link_or_copy<P: AsRef<Path>, Q: AsRef<Path>>(
p: P,
q: Q,
allow_overwrite: bool,
) -> Result<LinkOrCopy>Expand description
Copies p into q, preferring to use hard-linking if possible.
The result indicates which of the two operations has been performed.