Fix: really delete file
This commit is contained in:
@@ -1012,13 +1012,11 @@ import okhttp3.HttpUrl;
|
||||
}
|
||||
|
||||
// we can remove the frame file
|
||||
File frame = new File(ajob.getOutputImagePath());
|
||||
frame.delete();
|
||||
Utils.deleteFile(new File(ajob.getOutputImagePath()));
|
||||
ajob.setOutputImagePath(null);
|
||||
|
||||
if (ajob.getPreviewImagePath() != null) {
|
||||
frame = new File(ajob.getPreviewImagePath());
|
||||
frame.delete();
|
||||
Utils.deleteFile(new File(ajob.getPreviewImagePath()));
|
||||
ajob.setPreviewImagePath(null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user