+ Added
+ new method variant to register recursive listener
+ and control whether to recurse into a subtree or not via
+ FileFilter
.
+
call
returns true, the process
+ * of registering the listener is immediately interrupted
+ *
+ * @see FileObject#addRecursiveListener
+ * @since org.openide.filesystems 7.37
+ */
+ public static void addRecursiveListener(FileChangeListener listener, File path, Callablepath
. This does
+ * not prevent delivery of changes, if they are made via the filesystem API.
+ * External changes however will not be detected.
+ *
* @param listener FileChangeListener to listen to changes in path
* @param path File path to listen to (even not existing)
* @param stop an interface to interrupt the process of registering
* the listener. If the call
returns true, the process
- * of registering the listener is immediately interrupted
- *
- * @see FileObject#addRecursiveListener
- * @since org.openide.filesystems 7.37
+ * of registering the listener is immediately interrupted. null
+ * value disables this kind of callback.
+ * @param recurseInto a file filter that may return false
when
+ * a folder should not be traversed into and external changes in it ignored.
+ * null
recurses into all subfolders
+ * @since 7.61
*/
- public static void addRecursiveListener(FileChangeListener listener, File path, Callable