- All Known Subinterfaces:
ManagedDirectory
Chainable builder for creating directories.
- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptioncopyContentsFrom(File dir) Copy the contents of the directory at the given path recursively into this directory.copyContentsFrom(String first, String... rest) Copy the contents of the directory at the given path recursively into this directory.copyContentsFrom(Path rootDir) Copy the contents of the directory at the given path recursively into this directory.Create an empty directory.
-
Method Details
-
copyContentsFrom
Copy the contents of the directory at the given path recursively into this directory.This uses the default file system.
Examples:
// Using platform-specific separators. directoryBuilder.copyContentsFrom("foo/bar/baz"); // Letting JCT infer the correct path separators to use (recommended). directoryBuilder.copyContentsFrom("foo", "bar", "baz");- Parameters:
first- the first part of the path to the directory to copy from.rest- any additional parts of the path.- Returns:
- the root managed directory for further configuration.
-
copyContentsFrom
Copy the contents of the directory at the given path recursively into this directory.- Parameters:
dir- the directory to copy the contents from.- Returns:
- the root managed directory for further configuration.
-
copyContentsFrom
Copy the contents of the directory at the given path recursively into this directory.- Parameters:
rootDir- the directory to copy the contents from.- Returns:
- the root managed directory for further configuration.
-
thatIsEmpty
Create an empty directory.- Returns:
- the root managed directory for further configuration.
-