I’m monitoring a folder, when a user copies a file into the folder, I need to perform an action. However, when I perform the action the file has no contents yet. Is there a way to check that the copied file is ready?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I finally got it. I can use NSPasteboard to check what file is currently being copied.
With this information, I can compare the file size between the source and destination to know when the copy is complete.