/** * Return a folder object that's used to search a recursive * directory containing the complete works of William Shakespeare. */ public static CompletableFuture<Dirent> getRootFolder(String rootFolderName) { return Folder.fromDirectory(getRootFolderFile(rootFolderName) .toPath()); } }
/** * Create a new folder asynchronously. * * @return A future to the folder that completes when the folder * is created */ private static CompletableFuture<Dirent> createFolder() { // Asynchronously create and return a folder containing all // the works in the sWORKs directory. return Folder .fromDirectory(TestDataFactory .getRootFolderFile(sWORKs)); }
/** * Return a folder object that's used to search a recursive * directory containing the complete works of William Shakespeare. */ public static Dirent getRootFolder(String rootFolderName, boolean parallel) throws URISyntaxException, IOException { return Folder .fromDirectory(getRootFolderFile(rootFolderName) .toPath(), parallel); } }
/** * Create a new folder. * * @return An open folder */ private static Dirent createFolder(boolean parallel) { // Count the time needed to create and return a folder // containing all the works in the sWORKs directory. return Folder .fromDirectory(TestDataFactory .getRootFolderFile(sWORKs), parallel); }