How to download filename*.csv, if filename*.marker file exists on the FTP server using spring integration ftp support

Akshay Shrimali

My requirement is to support existing process. Here participant uploads filename*.csv and then uploads filename*.marker to the ftp location. I want to trigger ftp download of filename*.csv once filename*.marker exists on the same ftp location. This process i can't change. The presence of .marker file indicates that the .csv file is done updating and flow of processing the .csv file can begin. I was looking for the inbound channel adapter of spring integration's ftp support. But i don't see any support to download files with some filter criteria (filename*.csv), if on the same location there exists filename*.marker. In other words, I want to filter remote files on some criteria, but want to download different files (may be using inbound channel adapter). Kindly let me know if i can customize the same by implementing any interface etc.

Gary Russell

You need a custom filter to ignore *.csv files where the equivalent *.marker is not present.

public class MyMarkerFilter implements FileListFilter<FTPFile> {
    ...
}

And, in filterFiles drop the file(s) that you don't want to pass the filter.

This is a common use case, consider contributing the filter to the framework.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Transfer file from ftp Server to another ftp server using spring integration ftp support

From Dev

Python FTP server download Latest File with specific keywords in filename

From Dev

How to download files that contain a pound/hash sign '#' in the filename from an FTP server using PowerShell's FtpWebRequest class

From Dev

How to download a file name starting with "xyz" from server in Spring integration ftp?

From Dev

FTP file download with Spring-Integration?

From Dev

FTP file download order with Spring integration

From Dev

Fetching file from FTP using Spring Integration

From Dev

How to download specific file from FTP server using WinSCP?

From Dev

Using ftp_get() when there are "spaces" in the file path and filename

From Dev

FTP File Upload - Filename Encoding Error

From Dev

Spring FTP Integration : How to verify FTP session?

From Dev

How to download a file on FTP by using Python

From Dev

How to send CSV file directly to an FTP server

From

FTP Server file download issue

From Dev

Download CSV file from FTP server to save locally and process for Uploading

From Dev

How to Increment filename if file exists

From Dev

How to filter file by filename and route to corresponding channel in Spring Integration?

From Java

How to know if file is complete on the server using FTP?

From Dev

Spring Integration FTP - InboundChannelAdapter Stopped working with new FTP server

From Dev

Spring Integration Ftp | how to move remote files into another directory in remote server after FTP fetch complete

From Dev

How to download a blob file from Azure Storage and save it to an FTP server using Powershell?

From Dev

How to force download instead of opening srt file in Chrome from an FTP server using Javascript/jQuery?

From Dev

Reading gibberish filename (FTP/FSO)

From Dev

How to download a file from FTP server to Android device?

From

How can I download file from ftp server with golang

From Dev

How can I download the oldest file of an FTP server?

From Dev

Laravel 7. How to download a file from server (FTP)?

From Dev

Download a file from server and giving filename in angularjs

From Dev

Express server file download with comma (",") in filename

Related Related

  1. 1

    Transfer file from ftp Server to another ftp server using spring integration ftp support

  2. 2

    Python FTP server download Latest File with specific keywords in filename

  3. 3

    How to download files that contain a pound/hash sign '#' in the filename from an FTP server using PowerShell's FtpWebRequest class

  4. 4

    How to download a file name starting with "xyz" from server in Spring integration ftp?

  5. 5

    FTP file download with Spring-Integration?

  6. 6

    FTP file download order with Spring integration

  7. 7

    Fetching file from FTP using Spring Integration

  8. 8

    How to download specific file from FTP server using WinSCP?

  9. 9

    Using ftp_get() when there are "spaces" in the file path and filename

  10. 10

    FTP File Upload - Filename Encoding Error

  11. 11

    Spring FTP Integration : How to verify FTP session?

  12. 12

    How to download a file on FTP by using Python

  13. 13

    How to send CSV file directly to an FTP server

  14. 14

    FTP Server file download issue

  15. 15

    Download CSV file from FTP server to save locally and process for Uploading

  16. 16

    How to Increment filename if file exists

  17. 17

    How to filter file by filename and route to corresponding channel in Spring Integration?

  18. 18

    How to know if file is complete on the server using FTP?

  19. 19

    Spring Integration FTP - InboundChannelAdapter Stopped working with new FTP server

  20. 20

    Spring Integration Ftp | how to move remote files into another directory in remote server after FTP fetch complete

  21. 21

    How to download a blob file from Azure Storage and save it to an FTP server using Powershell?

  22. 22

    How to force download instead of opening srt file in Chrome from an FTP server using Javascript/jQuery?

  23. 23

    Reading gibberish filename (FTP/FSO)

  24. 24

    How to download a file from FTP server to Android device?

  25. 25

    How can I download file from ftp server with golang

  26. 26

    How can I download the oldest file of an FTP server?

  27. 27

    Laravel 7. How to download a file from server (FTP)?

  28. 28

    Download a file from server and giving filename in angularjs

  29. 29

    Express server file download with comma (",") in filename

HotTag

Archive