Merge branch 'fix/file_deletion' into 'master'

Fix/file_deletion

See merge request sheepitrenderfarm/client!217
This commit is contained in:
harlekin
2023-06-03 19:00:14 +00:00

View File

@@ -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();