Trait rsfs::unix_ext::GenFSExt
[−]
[src]
pub trait GenFSExt { fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(
&self,
src: P,
dst: Q
) -> Result<()>; }
Unix specific rsfs::GenFS
extensions.
Required Methods
fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(&self, src: P, dst: Q) -> Result<()>
Creates a new symbolic link on the filesystem.
The dst
path will be a symbolic link pointing to the src
path.
Examples
use rsfs::*; use rsfs::unix_ext::*; use rsfs::mem::FS; let fs = FS::new(); fs.symlink("a.txt", "b.txt")?;