for (Filter filter : mFilters)
deleteSubFolders
(new File(Options.instance().getDirectoryPath(),</BUG>
filter.getName()).getAbsolutePath());
setButtonsEnabled(true);
<BUG>UiUtils.showToast(this,
"Previously downloaded files deleted");
</BUG>
}
<BUG>private void deleteSubFolders(String path) {

File currentFolder = new File(path);</BUG>
File files[] = currentFolder.listFiles();

for (Filter filter : mFilters)
deletedFiles += deleteSubFolders
(new File(Options.instance().getDirectoryPath(),
filter.getName()).getAbsolutePath());
setButtonsEnabled(true);
UiUtils.showToast(this,
deletedFiles
+ " previously downloaded file(s) deleted");
}
private int deleteSubFolders(String path) {
int deletedFiles = 0;
File currentFolder = new File(path);
File files[] = currentFolder.listFiles();
