Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FreeBSD システムで /certain/path/ が与えられた場合、python で kqueue を使用して、そのパスの下のどこかにファイルが作成または削除されているかどうかを検出したいと思います。
どうすればいいですか?
BSDでkqueueを使用するwatchdogパッケージを試すことができます(Linuxではinotifyなど)。
Python のドキュメントによると、kqueue/kevent は既にサポートされています (もちろん BSD のみ)。