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.
我正在尝试使用 FileObserver 来监控一个文件夹,我需要找到修改文件的操作员。但是在捕获 FileObserver 事件时,我只能通过 onEvent() 方法获取事件和文件路径。
我该怎么做才能让操作员实时?