Package org.sosy_lab.common.io
Class TempFile.DeleteOnCloseDir
- java.lang.Object
-
- org.sosy_lab.common.io.TempFile.DeleteOnCloseDir
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- TempFile
@Immutable public static final class TempFile.DeleteOnCloseDir extends Object implements AutoCloseable
A simple wrapper aroundPaththat callsMoreFiles.deleteRecursively(Path, com.google.common.io.RecursiveDeleteOption...)recursively fromAutoCloseable.close()to delete the directory including its contents.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Recursively delete all files and directories in the directory represented by this instance.PathtoPath()
-
-
-
Method Detail
-
toPath
public Path toPath()
-
close
public void close() throws IOExceptionRecursively delete all files and directories in the directory represented by this instance.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-