I have downloaded the file from the some link(the name of file and extension given by dynamically) and store it in my document directory.Now I want to know when the user trying to access/read/write that particular file, I want to receive some notification dynamically. How can I do it?
Is it have any API ? or any specific methods present. using kqueue, I can know about the changes in the document directory. but I want to know when the user read the file and write the file content.
Please Guide me. Thanks for advise and suggestion.
I am not sure if you have checked this link. If not have a look at it. There is a pretty decent explanation on how to monitor directory changes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.