diff --git a/buildSrc b/buildSrc
index 9e53f9909d..2e7df56522 160000
--- a/buildSrc
+++ b/buildSrc
@@ -1 +1 @@
-Subproject commit 9e53f9909d0c72d867d765be0950ed1d7bb2708c
+Subproject commit 2e7df565220081896699549b48ebe102b4ac164e
diff --git a/docs/src/reference/docbook/ftp.xml b/docs/src/reference/docbook/ftp.xml
index a553d99bbc..d15acc05b1 100644
--- a/docs/src/reference/docbook/ftp.xml
+++ b/docs/src/reference/docbook/ftp.xml
@@ -124,6 +124,36 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/ftps
Once the file has been transferred a Message with java.io.File being a payload will be generated and sent to the channel
identified with channel attribute.
+
+ File Filtering and Large Files
+
+
+ Some times the file that just appeared in the monitored (remote) directory is not complete. Typically such file
+ will be written with some temporary extension (e.g., foo.txt.writing) and then renamed after the writing process finished.
+ As a user in most cases you are only interested in files that are complete and would like to filter only files that are complete.
+ To handle these scenarios Spring Integration FTP support allows you to configure custom filters that will filter out only
+ the files that you need. The filter is based on org.springframework.integration.file.filters.FileListFilter interface.
+ We also provide a convenient Regex-based implementation org.springframework.integration.ftp.filters.FtpPatternMatchingFileListFilter.
+ Once configured all you need is include such filter in your adapter via 'filter' attribute.
+
+
+
+
+
+
+
+]]>
+
+As an added convenience you may also use filename-pattern attribute instead of the explicit filter
+ configuration where you'll provide the filtering expression (Regex)
+
+
+
diff --git a/docs/src/reference/docbook/sftp.xml b/docs/src/reference/docbook/sftp.xml
index 88f7d642f0..01f322129f 100644
--- a/docs/src/reference/docbook/sftp.xml
+++ b/docs/src/reference/docbook/sftp.xml
@@ -82,8 +82,37 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp
It is also important to understand that SFTP Inbound Channel Adapter is a polling consumer and therefore
you must configure a poller (global or local)
Once the file has been transferred to a local directory a Message with java.io.File being a
- payload will be generated and sent to the channel identified with channel attribute.
-
+ payload will be generated and sent to the channel identified with channel attribute.
+
+
+ File Filtering and Large Files
+
+
+ Some times the file that just appeared in the monitored (remote) directory is not complete. Typically such file
+ will be written with some temporary extension (e.g., foo.txt.writing) and then renamed after the writing process finished.
+ As a user in most cases you are only interested in files that are complete and would like to filter only files that are complete.
+ To handle these scenarios Spring Integration SFTP support allows you to configure custom filters that will filter out only
+ the files that you need. The filter is based on org.springframework.integration.file.filters.FileListFilter interface.
+ We also provide a convenient Regex-based implementation org.springframework.integration.sftp.filters.SftpPatternMatchingFileListFilter.
+ Once configured all you need is include such filter in your adapter via 'filter' attribute.
+
+
+
+
+
+
+
+]]>
+
+ As an added convenience you may also use filename-pattern attribute instead of the explicit filter
+ configuration where you'll provide the filtering expression (Regex)
+
+