|
||||||||||
| 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 | |
|---|---|
java.io.File |
createTempDir(java.lang.String prefix,
java.lang.String suffix)
Create a temporary directory, and track it for deletion. |
boolean |
deleteBaseDir()
|
void |
deleteTempDir(java.io.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(java.io.File directory)
|
static void |
setTemporaryDirectory(java.io.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(java.io.File directory)
public static TemporaryFilesystem getTmpFsBasedOn(java.io.File directory)
public java.io.File createTempDir(java.lang.String prefix,
java.lang.String suffix)
prefix - the prefix to use when creating the temporary directorysuffix - the suffix to use when creating the temporary directory
public void deleteTempDir(java.io.File file)
file - the file to delete
WebDriverException - if interruptedpublic void deleteTemporaryFiles()
public boolean deleteBaseDir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||