fix(archive): correct flat-layout path and entry-count wording

Drop the phantom <basename>/ level for flat-layout installs (profileDir == root), say "entries" not "files" (count is per source path), and add ZipDir/Unzip (>1MB, empty, Zip-Slip) + flat-layout tests.
This commit is contained in:
moonD4rk
2026-06-06 21:04:24 +08:00
parent 96ed041fa0
commit 8851ef63ba
5 changed files with 126 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func archiveCmd() *cobra.Command {
if err != nil {
return err
}
log.Infof("Archived %d file(s) to %s", n, outputPath)
log.Infof("Archived %d entries to %s", n, outputPath)
return nil
},
}