I have the facility of uploading files in my project. Files are uploaded via FTP. I need to configure a listener who will check the new files and start a script only if the file is uploaded. Because if I run this script immediately after detecting the new file, it can start processing the file which is not fully uploaded, causing an error. Can anyone tell me that this is possible on Linux and how can I do this?
I will try, event codeIN_CLOSE_WRITE.
Comments
Post a Comment