Merge branch 'fix/file_deletion' into 'master'
Fix/file_deletion See merge request sheepitrenderfarm/client!217
This commit is contained in:
@@ -726,6 +726,12 @@ public class Server extends Thread {
|
|||||||
file_to_delete.delete();
|
file_to_delete.delete();
|
||||||
Utils.delete(new File(path));
|
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 we are using a shared downloads directory, then delete the file from the shared downloads directory as well :)
|
||||||
if (this.user_config.getSharedDownloadsDirectory() != null) {
|
if (this.user_config.getSharedDownloadsDirectory() != null) {
|
||||||
String commonCacheFile = this.user_config.getSharedDownloadsDirectory().getAbsolutePath() + File.separatorChar + fileMD5.getMd5();
|
String commonCacheFile = this.user_config.getSharedDownloadsDirectory().getAbsolutePath() + File.separatorChar + fileMD5.getMd5();
|
||||||
|
|||||||
Reference in New Issue
Block a user