/** * Returns the path of the system's temporary folder. This method appends the system's file * separator at the end of the path. * * @return the path of the system's temporary folder. */ public static String temporaryFolderPath() { return append(separator).to(System.getProperty("java.io.tmpdir")); }
/** * Creates a new folder in the system's temporary folder. The name of the folder will be the * result of: * * <pre> * System.currentTimeMillis(); * </pre> * * @return the created file. */ public static File newTemporaryFolder() { String tempFileName = String.valueOf(System.currentTimeMillis()); return newFolder(concat(temporaryFolderPath(), tempFileName)); }