TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Handling Filesystem Events with GCD in iOS and Cocoa

19 点作者 jemeshsu超过 13 年前

1 comment

scoopr超过 13 年前
Interesting. In my autobuild[0] tool I used the FSEvent api to monitor filesystem notifications.<p>This article prompted me to revisit the documentation, to make sure I'm not doing anything too stupid. The documentation clarifies:<p>The file system events API is also not designed for finding out when a particular file changes. For such purposes, the kqueues mechanism is more appropriate.<p>The file system events API is designed for passively monitoring a large tree of files for changes. The most obvious use for this technology is for backup software. Indeed, the file system events API provides the foundation for Apple’s backup technology.<p>So the FSEvent api is more suitable for my use case, but it is useful to know this if I happen to have a different use case in the future.<p>[0] <a href="https://github.com/scoopr/autobuild" rel="nofollow">https://github.com/scoopr/autobuild</a>