You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/engineering/swat/watch/WatchScope.java
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,17 @@
5
5
*/
6
6
publicenumWatchScope {
7
7
/**
8
-
* Watch changes to a single file or (metadata of) a directory, but not its
9
-
* content. That is, the following changes to a directory are watched:
10
-
* - any modification caused by the creation of a nested file/directory;
11
-
* - any modification caused by the deletion of a nested file/directory;
12
-
* - any modification of its own metadata.
8
+
* <p>Watch changes to a single file or (metadata of) a single directory. </p>
13
9
*
14
-
* When changes to nested files/directories should also be watched, use
15
-
* PATH_AND_CHILDREN or PATH_AND_ALL_DESCENDANTS.
10
+
* <p>Note, depending on the platform you can receive events for a directory
11
+
* in case of these events: </p>
12
+
* <ul>
13
+
* <li>a MODIFIED caused by the creation of a nested file/directory </li>
14
+
* <li>a MODIFIED caused by the deletion of a nested file/directory </li>
15
+
* <li>a MODIFIED of its own metadata</li>
16
+
* </ul>
17
+
*
18
+
* <p>In most cases when Path is a Directory you're interested in which nested entries changes, in that case use {@link #PATH_AND_CHILDREN} or {@link #PATH_AND_ALL_DESCENDANTS}. </p>
0 commit comments