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 aroundPath
that 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 void
close()
Recursively delete all files and directories in the directory represented by this instance.Path
toPath()
-
-
-
Method Detail
-
toPath
public Path toPath()
-
close
public void close() throws IOException
Recursively delete all files and directories in the directory represented by this instance.- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-