I'd like to have perl watching a folder and when a file shows up, to use it as an input and perform operations on it. The users would Sftp directly to that folder.
My problem is, when the file is still uploading to the directory (multi-gig files) the perl script is reading the directory, sees the start of the file, and tries to perform operations on it.