I am writing an application in objective c, one of the functions of the application is that it monitors a local folder for new files. The local folder is shared for other users, so anyone is able to put (usually files around 5gb) on there. Im looking for a way to interact with the new files that are put on the shared folder. These files have to be done copying before the applications tries to access them.
I've tried to monitor the size of the new file, the problem is that these files are also copied over wireless, so in case of a hickup the size stays the same and the application will already start interacting with the file.
The client side that puts files on the share is not running any copy applications, just finder or windows explorer. So there is no way to work with lock files or anything like that.
How is for instance Dropbox doing this?