src/pxar/fuse.rs: rename from_decoder into new, new into from_path

This commit is contained in:
Dietmar Maurer
2019-11-26 10:56:41 +01:00
parent 99b5b6cba9
commit 2a11191072
3 changed files with 19 additions and 19 deletions

View File

@ -253,7 +253,7 @@ fn mount_archive(
let archive = Path::new(archive);
let mountpoint = Path::new(mountpoint);
let options = OsStr::new("ro,default_permissions");
let mut session = pxar::fuse::Session::new(&archive, &options, verbose)
let mut session = pxar::fuse::Session::from_path(&archive, &options, verbose)
.map_err(|err| format_err!("pxar mount failed: {}", err))?;
// Mount the session and deamonize if verbose is not set
session.mount(&mountpoint, !verbose)?;