Suggestions/sample code for fileSystemWatcher in Java

后端 未结 5 565
[愿得一人]
[愿得一人] 2021-01-02 14:27

I am trying to build a fileSystemWatcher in java (similar to FileSystemWatcher in C#). Please suggest whether java has any built in framework capability for this or suggest/

5条回答
  •  春和景丽
    2021-01-02 15:00

    Check out the Apache Commons JCI FAM (FileAlterationMonitor). The unit tests should give you an idea how to use it.

提交回复
热议问题