mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Blob fixes (#3599)
* Fix error if movie back image blob was not found * Don't error out if scene cover get fails * Don't error out on image get fails * Add debug logging for fs blobs * Remove old blob data when no longer referenced
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
"github.com/stashapp/stash/pkg/file"
|
||||
"github.com/stashapp/stash/pkg/fsutil"
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -61,6 +62,7 @@ func (s *FilesystemStore) Write(ctx context.Context, checksum string, data []byt
|
||||
return fmt.Errorf("creating directory %q: %w", filepath.Dir(fn), err)
|
||||
}
|
||||
|
||||
logger.Debugf("Writing blob file %s", fn)
|
||||
out, err := s.fs.Create(fn)
|
||||
if err != nil {
|
||||
return fmt.Errorf("creating file %q: %w", fn, err)
|
||||
|
||||
Reference in New Issue
Block a user