Skip to content

Commit

Permalink
feat: fix removing after downloading #634
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinPostindustria committed Jun 13, 2023
1 parent 29a1eaa commit 18d31fb
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@ public File getInnerFile(String path) {
}

public boolean isFileAlreadyDownloaded(File file, String preferencesKey) {
boolean isFileAlreadyDownloaded = file.exists() && preferences.contains(preferencesKey);

if (isFileAlreadyDownloaded) return true;

if (file.exists()) {
removeFile(file);
}
return false;
return file.exists() && preferences.contains(preferencesKey);
}

public void createParentFolders(File file) {
Expand Down

0 comments on commit 18d31fb

Please sign in to comment.