build out cli and add size and gather functionality

This commit is contained in:
2024-06-05 00:03:05 -06:00
parent 6507518cd7
commit b3bbd2e5d1
11 changed files with 254 additions and 48 deletions

View File

@ -18,11 +18,12 @@ import (
// - file hash
// - modified date
func GatherInfo(path string, db db.DB) {
func GatherInfo(path string, db db.DB) error {
err := walkDir(path, db)
if err != nil {
log.Fatal(err)
return fmt.Errorf("error walking directory: %w", err)
}
return nil
}
func walkDir(dirPath string, db db.DB) error {