pub fn new_symlink_at<T: AsRef<Path>, S: AsRef<Path>>(target: T, symlink: S) -> Result<File> {
        let ret = File {
            _dir: None,
            path: symlink.as_ref().to_path_buf(),
        };
        if let Some(parent) = symlink.as_ref().parent() {
            fs::create_dir_all(parent)?;
        }
        create_symlink(target, symlink)?;
        Ok(ret)
    }
/// Create a new temporary symlink at the specified path, pointing at the
/// given target.
Create a new temporary symlink at the specified path, pointing at the
given target.
Create a new temporary symlink at the specified path pointing at the given target .
pub fn new_symlink_at<T: AsRef<Path>, S: AsRef<Path>>(target: T, symlink: S) -> Result<File> {
        let ret = File {
            _dir: None,
            path: symlink.as_ref().to_path_buf(),
        };
        if let Some(parent) = symlink.as_ref().parent() {
            fs::create_dir_all(parent)?;
        }
        create_symlink(target, symlink)?;
        Ok(ret)
    }
pub fn new_symlink_at < T : AsRef < Path > , S : AsRef < Path > > ( target : T , symlink : S ) -> Result < File > { let ret = File { _dir : None , path : symlink . as_ref ( ) . to_path_buf ( ) , } ; if let Some ( parent ) = symlink . as_ref ( ) . parent ( ) { fs :: create_dir_all ( parent ) ? ; } create_symlink ( target , symlink ) ? ; Ok ( ret ) }
Create a new temporary symlink at the specified path, pointing at the
given target.
Create a new temporary symlink at the specified path pointing at the given target .
target
T
symlink
S
target
T
symlink
S