|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.io.TemporaryFilesystem
public class TemporaryFilesystem
A wrapper around temporary filesystem behaviour.
Method Summary | |
---|---|
File |
createTempDir(String prefix,
String suffix)
Create a temporary directory, and track it for deletion. |
void |
deleteTempDir(File file)
Delete a temporary directory that we were responsible for creating. |
void |
deleteTemporaryFiles()
Perform the operation that a shutdown hook would have. |
static TemporaryFilesystem |
getDefaultTmpFS()
|
static TemporaryFilesystem |
getTmpFsBasedOn(String directory)
|
static void |
setTemporaryDirectory(File directory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TemporaryFilesystem getDefaultTmpFS()
public static void setTemporaryDirectory(File directory)
public static TemporaryFilesystem getTmpFsBasedOn(String directory)
public File createTempDir(String prefix, String suffix)
prefix
- the prefix to use when creating the temporary directorysuffix
- the suffix to use when creating the temporary directory
public void deleteTempDir(File file)
file
- the file to delete
WebDriverException
- if interruptedpublic void deleteTemporaryFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |