When deleting a download batch, all of the files get deleted but leaving the folders.
Solution
The solution is to let the DownloadBatch delete folders after deleting files - this requires DownloadBatch to know the storage root of the batch. Helper and internal classes to Batch , such as, LiteBatchFileBuilder knew the formation of batch storage path. That knowledge is now extracted to BatchStorageRoot so it is now used by the DownloadBatch to delete the batch folders.
Problem
When deleting a download batch, all of the files get deleted but leaving the folders.
Solution
The solution is to let the
DownloadBatch
delete folders after deleting files - this requiresDownloadBatch
to know the storage root of the batch. Helper and internal classes toBatch
, such as,LiteBatchFileBuilder
knew the formation of batch storage path. That knowledge is now extracted toBatchStorageRoot
so it is now used by theDownloadBatch
to delete the batch folders.