mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 19:10:58 +00:00
Use DeletingFileInputStream in tar method
This commit is contained in:
parent
3c86eb0d52
commit
55cb41f5b2
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public class Tar {
|
|||
tmp.deleteOnExit();
|
||||
try (FileOutputStream target = new FileOutputStream(tmp)) {
|
||||
tarTo(fileOrDir, target);
|
||||
return new FileInputStream(tmp);
|
||||
return new DeletingFileInputStream(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue