Package com.atlassian.bamboo.testutils
Class TempDirectory
- java.lang.Object
-
- java.io.File
-
- com.atlassian.bamboo.testutils.TempDirectory
-
- All Implemented Interfaces:
Serializable
,Comparable<File>
public class TempDirectory extends File
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
-
Constructor Summary
Constructors Constructor Description TempDirectory(Object client)
TempDirectory(String baseTempDirectoryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAll()
TempDirectory
mkdir(String name)
File
mkfile(String name)
File
mkfile(String name, byte[] contents)
-
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
-
-
-
Constructor Detail
-
TempDirectory
public TempDirectory(Object client) throws IOException
- Throws:
IOException
-
TempDirectory
public TempDirectory(String baseTempDirectoryName) throws IOException
- Throws:
IOException
-
-
Method Detail
-
deleteAll
public void deleteAll() throws IOException
- Throws:
IOException
-
mkdir
public TempDirectory mkdir(String name) throws IOException
- Throws:
IOException
-
mkfile
public File mkfile(String name) throws IOException
- Throws:
IOException
-
mkfile
public File mkfile(String name, byte[] contents) throws IOException
- Throws:
IOException
-
-