Add comment

This commit is contained in:
Nbiba Bedis 2021-11-15 11:37:32 +01:00
parent 9e41712f44
commit c0b37c117c

View File

@ -519,6 +519,7 @@ fn list_archive_contents(
/// 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 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(
unpack_fn: Box<dyn FnOnce(&Path) -> crate::Result<Vec<PathBuf>>>,
output_dir: &Path,