Tracing directory contents
How can one trace the content of a directory? The directory here refers to non home and non current directory. Explicitly, I have three directories
- 10.5.8 - current directory
- Development
- Backup
So, how can I undergo file operation like create, accessing or deleting on Development or Backup directory other than my current directory?
开发者_运维百科Regards, Lenin
Your terminology is hard to understand. Do you mean you want to monitor a folder (and its children) for changes, read/modify folders/files to which you don't have permission, or both?
To monitor for changes, check out the FSEvents API.
To obtain permission to perform a privileged operation, check out the Authorization Services API.
精彩评论