From d0022c29995797d0e43a3c0fb14d83844d801cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Leszko?= Date: Mon, 17 Jun 2024 14:53:39 +0200 Subject: [PATCH] Fix Storj delimiter while removing unused assets --- task/runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task/runner.go b/task/runner.go index 50501ea..59033cb 100644 --- a/task/runner.go +++ b/task/runner.go @@ -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) 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, "/") if err != nil { glog.Errorf("Error listing files for asset %v: %v", asset.ID, err) return err