What Jim says is true but if I can make a suggestion.
It would not be a good idea to have your FTP server dump the files directly into the Fileset/Local directory which Cloverleaf will use to process the files.
Since there is probably no file locking it is possible that Cloverleaf could start to process a file before it was completely written by the FTP server.
Three Options
Some FTP clients, like Cloverleaf, have the option to write the file to a temporary location and then, after success, move the file to a final location
Have the FTP server write the files to a different directory. Have a script that will periodically move files to Fileset/Local directory. Move is an atomic operation and only the inode is affected if on the same file system.
Write a DirParse UPoC as alluded to by Jim. This proc would size the files in the directory and save in a global or namespace variable (Probably an array). Only when the size is the same for two successive scans would you process the file. A very common proc. I have written many of them
Good luck with it.