106107108109110111112113114115116
Key key = super.register(path, eventTypes); Snapshot snapshot = takeSnapshot(path); if (snapshot == null) { throw new NotDirectoryException(path.toString()); } synchronized (this) { snapshots.put(key, snapshot); if (pollingFuture == null) {
96979899100101102103104
*/ public DirectoryEntry requireDirectory( Path pathForException) throws NoSuchFileException, NotDirectoryException { requireExists(pathForException); if (!file().isDirectory()) { throw new NotDirectoryException(pathForException.toString()); } return this; }