mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
Add comment
This commit is contained in:
parent
9e41712f44
commit
c0b37c117c
@ -519,6 +519,7 @@ fn list_archive_contents(
|
|||||||
/// Unpacks an archive with some heuristics
|
/// Unpacks an archive with some heuristics
|
||||||
/// - If the archive contains only one file, it will be extracted to the `output_dir`
|
/// - If the archive contains only one file, it will be extracted to the `output_dir`
|
||||||
/// - If the archive contains multiple files, it will be extracted to a subdirectory of the output_dir named after the archive (given by `output_file_path`)
|
/// - If the archive contains multiple files, it will be extracted to a subdirectory of the output_dir named after the archive (given by `output_file_path`)
|
||||||
|
/// Note: This functions assumes that `output_dir` exists
|
||||||
fn smart_unpack(
|
fn smart_unpack(
|
||||||
unpack_fn: Box<dyn FnOnce(&Path) -> crate::Result<Vec<PathBuf>>>,
|
unpack_fn: Box<dyn FnOnce(&Path) -> crate::Result<Vec<PathBuf>>>,
|
||||||
output_dir: &Path,
|
output_dir: &Path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user