Merge branch 'main' into cache-cmd

This commit is contained in:
David Allen 2024-11-03 19:37:29 -07:00 committed by GitHub
commit 170df80621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 1118 additions and 356 deletions

View file

@ -106,11 +106,9 @@ func DeleteScannedAssets(path string, assets ...magellan.RemoteAsset) error {
func GetScannedAssets(path string) ([]magellan.RemoteAsset, error) {
// check if path exists first to prevent creating the database
exists, err := util.PathExists(path)
_, exists := util.PathExists(path)
if !exists {
return nil, fmt.Errorf("no file found")
} else if err != nil {
return nil, err
}
// now check if the file is the SQLite database