diff --git a/core/storageproviders/local.go b/core/storageproviders/local.go index da6db6c2c..31d517a46 100644 --- a/core/storageproviders/local.go +++ b/core/storageproviders/local.go @@ -93,7 +93,7 @@ func (s *LocalStorage) Cleanup() error { // Determine how many files we should keep on disk maxNumber := data.GetStreamLatencyLevel().SegmentCount buffer := 10 - baseDirectory := config.HLSStoragePath + baseDirectory := filepath.Join(config.HLSStoragePath, s.streamID) files, err := getAllFilesRecursive(baseDirectory) if err != nil {