开发者

Track a file [C++ or Python]

How can I "track" a file using C++, or Python (I'm guessing C++ will be way more powerfull. Just putting Python in there in case there is a way with it, which wou开发者_运维问答ld be simpler than C++).

When I mean track, I mean registering any moving of the file to a different path, changes in name, etc. Changes in the actual content of the file isn't an issue.


(migrated from comment)

You can do that using launchd on OS X. Check out: Is there a command like "watch" or "inotifywait" on the Mac?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜