/** * Removes a listener to changes in a given path. * @param listener FileChangeListener to be removed * @param path File path in which listener was listening * @throws IllegalArgumentException if listener was not listening to given path * * @see FileObject#removeFileChangeListener * @since org.openide.filesystems 7.20 */ public static void removeFileChangeListener(FileChangeListener listener, File path) { FileChangeImpl.removeFileChangeListenerImpl(LOG, listener, path); } /**
static void removeRecursiveListener(FileChangeListener listener, File path) { final DeepListener deep = new DeepListener(listener, path, null, null); // no need to deep.init() DeepListener dl = (DeepListener)FileChangeImpl.removeFileChangeListenerImpl(DeepListener.LOG, deep, path); dl.run(); } }