Skip to content

Commit

Permalink
Fix Storj delimiter while removing unused assets
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Jun 17, 2024
1 parent ab118fd commit d0022c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions task/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,13 +623,13 @@ func deleteAsset(asset *api.Asset, r *runner, ctx context.Context) error {
return err
}

directory := fmt.Sprintf("%s/", asset.PlaybackID)
directory := fmt.Sprintf("hls/%s/", asset.PlaybackID)

Check warning on line 626 in task/runner.go

View check run for this annotation

Codecov / codecov/patch

task/runner.go#L626

Added line #L626 was not covered by tests
var totalDeleted int

glog.Infof("Listing files in directory %v", directory)

// Initially list files
pi, err := assetOS.ListFiles(ctx, directory, "")
pi, err := assetOS.ListFiles(ctx, directory, "/")

Check warning on line 632 in task/runner.go

View check run for this annotation

Codecov / codecov/patch

task/runner.go#L632

Added line #L632 was not covered by tests
if err != nil {
glog.Errorf("Error listing files for asset %v: %v", asset.ID, err)
return err
Expand Down

0 comments on commit d0022c2

Please sign in to comment.