/** Full refresh clears existing resources and watchers and does a clean refresh. */ private void fullRefresh() throws IOException { resolutionsByResource = Maps.newIdentityHashMap(); childPathsByParentPath = ArrayListMultimap.create(); maybeInitializeWatchService(); onNewDirectory(rootDirectory); }
private void onNewPath(Path path) throws IOException { if (Files.isHidden(path)) { return; } if (Files.isRegularFile(path)) { onNewFile(path); } else { onNewDirectory(path); } }