summaryrefslogtreecommitdiff
path: root/internal/model/scan.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/model/scan.go')
-rw-r--r--internal/model/scan.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/model/scan.go b/internal/model/scan.go
index 7fb4e8d..aeec15e 100644
--- a/internal/model/scan.go
+++ b/internal/model/scan.go
@@ -47,6 +47,13 @@ func (p *ScanProgress) SetFilesTotal(total int) {
p.FilesTotal = total
}
+// AddFilesTotal adds to the total number of files discovered during the scan.
+func (p *ScanProgress) AddFilesTotal(total int) {
+ p.mu.Lock()
+ defer p.mu.Unlock()
+ p.FilesTotal += total
+}
+
// IncrementSet increments the completed set count.
func (p *ScanProgress) IncrementSet() {
p.mu.Lock()