Scanner extends ExecutorProxy { public void ignoreHiddenFiles(final boolean ignoreHiddenFiles) { this.ignoreHiddenFiles = ignoreHiddenFiles; } Scanner(final BlockingQueue<Path> queue);  Scanner(final BlockingQueue<Path> queue, final SealableLatch latch);  Scanner(final BlockingQueue<Path> queue, final SealableLatch latch, final
	Notifiable notifiable); Scanner configure(final Options<String> options); void include(final String pattern); void exclude(final String pattern); void followSymLinks(final boolean followLinks); boolean followSymLinks(); void ignoreHiddenFiles(final boolean ignoreHiddenFiles); boolean ignoreHiddenFiles(); void ignoreSystemFiles(final boolean ignoreSystemFiles); boolean ignoreSystemFiles(); void setMaxDepth(final int maxDepth); int getMaxDepth(); SealableLatch getLatch(); long queued(); Future<Long> scan(final Path path); ScannerVisitor createScannerVisitor(Path path); List<Future<Long>> scan(final Path[] paths); List<Future<Long>> scan(final String[] paths); long getNumberOfFiles(final Path path);  }
@Test public void testIgnoreHiddenFiles() throws Throwable { final Path root = Paths.get(getClass().getResource("/documents/").toURI()); final Path hidden = root.resolve(".hidden"); scanner.ignoreHiddenFiles(true); Assert.assertTrue(scanner.ignoreHiddenFiles()); assertEquals(10, (long)scanner.scan(root).get()); Assert.assertTrue(Files.exists(hidden)); Assert.assertFalse(queue.contains(hidden)); scanner.ignoreHiddenFiles(false); Assert.assertFalse(scanner.ignoreHiddenFiles()); assertEquals(11, (long)scanner.scan(root).get()); Assert.assertTrue(queue.contains(hidden)); shutdownScanner(scanner); }