回答編集履歴
2
誤字, 文言の修正
answer
CHANGED
@@ -7,4 +7,4 @@
|
|
7
7
|
|
8
8
|
一方で, (質問者さんの環境の) MacOS のバックエンドである FSEvent には, inotify の IN_OPEN に相当するイベントは存在しないようです([参考](https://developer.apple.com/reference/coreservices/1455361-fseventstreameventflags?language=objc)).
|
9
9
|
|
10
|
-
もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify)
|
10
|
+
もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) を利用して, IN_OPEN の監視を行うのはいかがでしょうか.
|
1
誤字の修正
answer
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
[github.com/ttilley/fssm/blob/master/lib/fssm/support.rb](https://github.com/ttilley/fssm/blob/master/lib/fssm/support.rb#L5)
|
4
4
|
|
5
5
|
|
6
|
-
質問者さんの "ファイルを開いた" イベントとは, Linux 上で使用される
|
6
|
+
質問者さんの "ファイルを開いた" イベントとは, Linux 上で使用されるバックエンドである inotify が提供する [IN_OPEN](https://linux.die.net/man/7/inotify) が該当すると思われます.
|
7
7
|
|
8
|
+
一方で, (質問者さんの環境の) MacOS のバックエンドである FSEvent には, inotify の IN_OPEN に相当するイベントは存在しないようです([参考](https://developer.apple.com/reference/coreservices/1455361-fseventstreameventflags?language=objc)).
|
9
|
+
|
8
|
-
もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) が利用
|
10
|
+
もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) が利用して, IN_OPEN の監視を行えばよいかと思います.
|