| |
|
| java.lang.Object com.lutris.util.TmpDir
TmpDir | class TmpDir (Code) | | Class for creating and manage a temporary directory.
version: $Revision: 1.2 $ author: Mark Diekhans since: Jolt1.0 |
Method Summary | |
public void | delete() | public File | file() Get the File object describing the directory. | public File | mkdirs(String path) Create the specified directory in the tmp directory if it doesn't exist.
Parameters: path - Path of directory relative to the tmp directory. | void | recursiveDelete(File dirPath) Recursive delete files. |
TmpDir | public TmpDir(String path, String baseName) throws IOException(Code) | | Create a tmp directory.
Parameters: dirPath - Path of directory to generate the temporary file in. Parameters: baseName - Prefix name of the directory. exception: java.io.IOException - if unable to create the directory. |
file | public File file()(Code) | | Get the File object describing the directory.
Reference to the file object. |
mkdirs | public File mkdirs(String path) throws IOException(Code) | | Create the specified directory in the tmp directory if it doesn't exist.
Parameters: path - Path of directory relative to the tmp directory. A File naming the new directory. exception: java.io.IOException - if unable to create the directory. |
recursiveDelete | void recursiveDelete(File dirPath)(Code) | | Recursive delete files.
|
|
|
|