Add verbose output for freshen showing M/A/D files with -v

This commit is contained in:
Jeffrey Paul 2025-12-17 15:04:43 -08:00
parent e6cb906d35
commit 6dc496fa9e

View File

@ -149,6 +149,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
existingMtime := time.Unix(existing.Mtime.Seconds, int64(existing.Mtime.Nanos))
if existing.Size != info.Size() || !existingMtime.Equal(info.ModTime()) {
changed++
log.Debugf("M %s", relPath)
entries = append(entries, &freshenEntry{
path: relPath,
size: info.Size(),
@ -169,6 +170,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
delete(existingByPath, relPath)
} else {
added++
log.Debugf("A %s", relPath)
entries = append(entries, &freshenEntry{
path: relPath,
size: info.Size(),
@ -195,6 +197,9 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
// Remaining entries in existingByPath are removed files
removed = int64(len(existingByPath))
for path := range existingByPath {
log.Debugf("D %s", path)
}
scanDuration := time.Since(startScan)
log.Infof("scan complete in %s: %d unchanged, %d changed, %d added, %d removed",