Skip to content

Commit

Permalink
Print the number of files if available in the snapshot file
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed Nov 3, 2018
1 parent 0732920 commit 244b797
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/duplicacy_snapshotmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,11 @@ func (manager *SnapshotManager) ListSnapshots(snapshotID string, revisionsToList
}

if showFiles {

if snapshot.NumberOfFiles > 0 {
LOG_INFO("SNAPSHOT_STATS", "Files: %d", snapshot.NumberOfFiles)
}

maxSize := int64(9)
maxSizeDigits := 1
totalFiles := 0
Expand Down

0 comments on commit 244b797

Please sign in to comment.