mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-11 21:37:47 +01:00
fix: prevent cluttering temp files, delete BRUT temp files on close
This commit is contained in:
parent
258fb82fe2
commit
cabf1d5cad
@ -122,6 +122,7 @@ public class OS {
|
||||
public static File createTempDirectory() throws BrutException {
|
||||
try {
|
||||
File tmp = File.createTempFile("BRUT", null);
|
||||
tmp.deleteOnExit();
|
||||
if (!tmp.delete()) {
|
||||
throw new BrutException("Could not delete tmp file: " + tmp.getAbsolutePath());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user