Class DirectoryStash
-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class DirectoryStash implements Closeable
A Closeable class which temporarily moves away directories and moves them back on close. Any conflicting directory created at the location of an original directory is deleted before the original state is restored. If a specified directory did not exist on initialization, it will also not exist on close.
-
-
Constructor Summary
Constructors Constructor Description DirectoryStash(Set<File> directories)
-