Allow dead code for symlink_junction()
This commit is contained in:
parent
0bd55e5484
commit
fb172b676e
1 changed files with 2 additions and 0 deletions
|
@ -657,6 +657,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
|
|||
Ok(size as u64)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()> {
|
||||
symlink_junction_inner(src.as_ref(), dst.as_ref())
|
||||
}
|
||||
|
@ -666,6 +667,7 @@ pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::R
|
|||
// what can be found here:
|
||||
//
|
||||
// http://www.flexhex.com/docs/articles/hard-links.phtml
|
||||
#[allow(dead_code)]
|
||||
fn symlink_junction_inner(target: &Path, junction: &Path) -> io::Result<()> {
|
||||
let d = DirBuilder::new();
|
||||
try!(d.mkdir(&junction));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue