Skip to content

Commit a9f32d4

Browse files
committed
Change
1 parent 77412e1 commit a9f32d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/cli/metadata_artwork.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ type ArtworkCmd struct {
2424

2525
func (cmd *MetadataCmd) Run(globals *Globals) error {
2626
// Create the walker with the processor callback
27-
walker := file.NewWalker(func(ctx context.Context, abspath, relpath string, info fs.FileInfo) error {
27+
walker := file.NewWalker(func(ctx context.Context, root, relpath string, info fs.FileInfo) error {
2828
// Ignore directories
2929
if info.IsDir() {
3030
return nil
3131
}
3232

3333
// Open the file
34-
reader, err := globals.manager.Open(filepath.Join(abspath, relpath), nil)
34+
reader, err := globals.manager.Open(filepath.Join(root, relpath), nil)
3535
if err != nil {
3636
globals.manager.Errorf("Error opening %q: %v\n", relpath, err)
3737
return nil

0 commit comments

Comments
 (0)