Interface DirectoryBuilder

All Known Subinterfaces:
ManagedDirectory

@API(since="0.0.1", status=STABLE) public interface DirectoryBuilder
Chainable builder for creating directories.
Since:
0.0.1
Author:
Ashley Scopes
  • 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.