差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
translation:working:翻訳5 [2016-05-10 21:02] Decomo |
translation:working:翻訳5 [2016-08-24 13:46] (現在) Decomo |
||
---|---|---|---|
行 109: | 行 109: | ||
イベント処理の必要に応じて、ハンドラはこれらリストをイテレートして下さい。 | イベント処理の必要に応じて、ハンドラはこれらリストをイテレートして下さい。 | ||
+ | For each event, you should scan the directory at the specified path, processing its contents as desired. | ||
+ | 通常、そのパスによって示されるディレクトリだけを走査する必要があります。しかしながら、そのケースに当てはまらない3つの状況があります: | ||
+ | * 1つのディレクトリにおいて、サブディレクトリ内で複数のイベントが同時に発生した場合、それらイベントは1つのイベントにまとめられる可能性があります。このケースでは、'' | ||
+ | * カーネルとユーザー空間の間でコミュニケーションエラーが発生した場合、'' | ||
- | For each event, you should scan the directory at the specified path, processing its contents as desired. Normally, you need to scan only the exact directory specified by the path. However, there are three situations in which this is not the case: | + | < |
- | + | イベントのドロップ時は'' | |
- | If an event in a directory occurs at about the same time as one or more events in a subdirectory of that directory, the events may be coalesced into a single event. In this case, you will receive an event with the kFSEventStreamEventFlagMustScanSubDirs | + | 上で述べたように、パスのフルスキャンを行うべきかどうかの判断では、 |
- | + | ||
- | If a communication error occurs between the kernel and the user-space daemon, you may receive an event with either the kFSEventStreamEventFlagKernelDropped or kFSEventStreamEventFlagUserDropped flag set. In either case, you must do a full scan of any directories that you are monitoring because there is no way to determine what may have changed. | + | |
Note: When an event is dropped, the kFSEventStreamEventFlagMustScanSubDirs flag is also set. Thus, it is not necessary to explicitly check for the dropped event flags when determining whether to perform a full rescan of a path. The dropped event flags are provided purely for informational purposes. | Note: When an event is dropped, the kFSEventStreamEventFlagMustScanSubDirs flag is also set. Thus, it is not necessary to explicitly check for the dropped event flags when determining whether to perform a full rescan of a path. The dropped event flags are provided purely for informational purposes. | ||