Technote (FAQ)
Question
If an application is copying a large file into a folder that is being polled by a DataPower FTP Poller, and if the file name matches the pattern being polled for, does the FTP Poller know when the file has been copied completely?
Cause
Outside application copying a large file into a folder being polled by a DataPower FTP Poller.
Answer
The FTP poller has no way to know if the "feeder" application has copied the file completely. The "feeder" application needs to write the file to a name on the FTP server that does NOT match the DataPower configured match pattern for the poller. When the feeder finishes writing the file, and ideally uses the STAT command for a size check (to verify no truncation), then the feeder should use RNFR/RNTO to rename the file to a name that does match the configured match pattern.
Note that some FTP servers do this "automatically", That is, while they are writing the file, they use a temporary name (ex. files starting with a period) and then rename the file when the data connection closes. But that is not universal among FTP servers and it is not part of the FTP specification. The approach described in the previous paragraph, particularly using the STAT call wisely, is "best practice".
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.