Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix: remove temp directory (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylee-ch authored Oct 14, 2022
1 parent 2d24aaf commit 75f685c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ private JniUtils(String _tmp_dir) throws IOException, IllegalAccessException, Il
} else {
Path folder = Paths.get(_tmp_dir);
Path path = Files.createTempDirectory(folder, "spark_columnar_plugin_");
FileUtils.forceDeleteOnExit(new File(path.toUri()));
Runtime.getRuntime().addShutdownHook(
new Thread(() -> FileUtils.deleteQuietly(path.toFile())));
tmp_dir = path.toAbsolutePath().toString();
}
}
Expand Down

0 comments on commit 75f685c

Please sign in to comment.