Remove the separate enumerateFiles() function that was doing a full directory walk using Readdir() which calls stat() on every file. Instead, build the existingFiles map during the scan phase walk, and detect deleted files afterward. This eliminates one full filesystem traversal, significantly speeding up the scan phase for large directories. |
||
|---|---|---|
| .. | ||
| backup_test.go | ||
| file_change_test.go | ||
| manifest.go | ||
| module.go | ||
| progress.go | ||
| scanner_test.go | ||
| scanner.go | ||
| snapshot_test.go | ||
| snapshot.go | ||