diff --git a/src/main/java/com/sheepit/client/Server.java b/src/main/java/com/sheepit/client/Server.java index 64f772a..ee0c1dd 100644 --- a/src/main/java/com/sheepit/client/Server.java +++ b/src/main/java/com/sheepit/client/Server.java @@ -726,6 +726,12 @@ public class Server extends Thread { file_to_delete.delete(); Utils.delete(new File(path)); + //also delete in binary cache + path = this.user_config.getStorageDirectory().getAbsolutePath() + File.separator + fileMD5.getMd5(); + file_to_delete = new File(path + ".zip"); + file_to_delete.delete(); + Utils.delete(new File(path)); + // If we are using a shared downloads directory, then delete the file from the shared downloads directory as well :) if (this.user_config.getSharedDownloadsDirectory() != null) { String commonCacheFile = this.user_config.getSharedDownloadsDirectory().getAbsolutePath() + File.separatorChar + fileMD5.getMd5();