Skip to content

Commit bb9dadb

Browse files
committed
spring-projectsGH-8659: Updating the documentation as requested
1 parent 0dac520 commit bb9dadb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/reference/asciidoc/file.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,12 @@ For this purpose, the `watch-events` property (`FileReadingMessageSource.setWatc
371371
With such an option, we can use one downstream flow logic for new files and use some other logic for modified files.
372372
The following example shows how to configure different logic for create and modify events in the same directory:
373373

374+
It is worth mentioning that the `ENTRY_DELETE` event is involved in the rename operation of sub-directory of the watched directory.
375+
More specifically, `ENTRY_DELETE` event, which is related to the previous directory name, precedes `ENTRY_CREATE` event
376+
which notifies about the new (renamed) directory.
377+
On some operating systems (like Windows), the `ENTRY_DELETE` event has to be registered to deal with that situation.
378+
Otherwise, renaming watched sub-directory in the File Explorer could result in the new files not being detected in that sub-directory.
379+
374380
====
375381
[source,xml]
376382
----

0 commit comments

Comments
 (0)