public class TempDirectoryUtil extends Object
Constructor and Description |
---|
TempDirectoryUtil() |
Modifier and Type | Method and Description |
---|---|
static File |
createTempDirectory(String prefix)
Creates an empty directory in the default temporary-file directory, using the given prefix and suffix to generate its name.
|
static String |
getSystemTempDir()
Returns the system's temp directory.
|
public static File createTempDirectory(String prefix)
Note: these directories will get deleted when the JVM exits.
prefix
- The prefix string to be used in generating the directory's name.File
object denoting a newly-created empty directorypublic static String getSystemTempDir()
Be aware that some operating systems place a trailing slash and others don't.
Copyright © 2002-2021 Atlassian. All Rights Reserved.