add collecting of filemetadata for a given source

This commit is contained in:
2023-06-05 00:46:12 -06:00
parent 899faba255
commit cf9173b7ee
8 changed files with 306 additions and 0 deletions

25
main.go Normal file
View File

@ -0,0 +1,25 @@
package main
import (
"fmt"
"forever-files/db"
"forever-files/source"
"forever-files/types"
)
func main() {
fmt.Printf("%v\n", types.AppName)
store, err := db.NewDB(types.AppName)
if err != nil {
panic(fmt.Errorf("error creating db: %w", err))
}
err = store.Migrate()
if err != nil {
panic(fmt.Errorf("error migrating db: %w", err))
}
source.GatherInfo("C:\\Users\\gomas\\Nextcloud", store)
}