private static File getTempDir() {
            String rootPath = getResourceFile("/");
            String tmpPath = rootPath + "/tmp/";
            File tmpDir = new File(tmpPath);
            if (!tmpDir.exists() && !tmpDir.mkdirs()) {
                if (!tmpDir.exists()) { // possible race condition may cause mkdirs() to fail, check a second time before failing
                    throw new RuntimeException("Could not create temp dir: " + tmpDir.getAbsolutePath());
                }
            }
            if (!tmpDir.isDirectory()) {
                throw new RuntimeException("Temp dir path is not a directory: " + tmpDir.getAbsolutePath());
            }
            return tmpDir;
        }
Get the temporary directory

@return The temporary directory File object
application/src/main/java/com/yahoo/application/Application.java