exp: cross #5
This commit is contained in:
@@ -70,12 +70,9 @@ impl ContextDriver for UnshareDriver {
|
||||
Ok(Path::new(dest_root).join(filename))
|
||||
}
|
||||
|
||||
fn retrieve_path(&self, _src: &Path, _dest: &Path) -> io::Result<()> {
|
||||
// TODO: Implement chroot file retrieval logic
|
||||
Err(io::Error::new(
|
||||
io::ErrorKind::Unsupported,
|
||||
"retrieve_path not yet implemented for chroot",
|
||||
))
|
||||
fn retrieve_path(&self, src: &Path, dest: &Path) -> io::Result<()> {
|
||||
let host_src = Path::new(&self.path).join(src.to_string_lossy().trim_start_matches('/'));
|
||||
self.parent().retrieve_path(&host_src, dest)
|
||||
}
|
||||
|
||||
fn list_files(&self, path: &Path) -> io::Result<Vec<PathBuf>> {
|
||||
|
||||
Reference in New Issue
Block a user