开发者

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

  1. 10.5.8 - current directory
  2. Development
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜