Skip to content

Commit

Permalink
Mark empty directories for deletion by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Mar 20, 2024
1 parent 1afcc3c commit 74f69f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TwitchDownloaderWPF/WindowOldVideoCacheManager.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ public long CalculateSize()
var sizeString = VideoSizeEstimator.StringifyByteCount(sizeBytes);
Size = string.IsNullOrEmpty(sizeString) ? "0B" : sizeString;

if (sizeBytes == 0)
{
ShouldDelete = true;
}

return sizeBytes;
}
}
Expand Down

0 comments on commit 74f69f8

Please sign in to comment.