How to detect filesystem has changed in java

前端 未结 4 1885
生来不讨喜
生来不讨喜 2021-01-13 21:34

I would like to know how to efficiently implement filesystem changes in java? Say I got a file in a folder and modify that file. I would like to be notified by java about th

4条回答
  •  伪装坚强ぢ
    2021-01-13 22:01

    I doubt that there is a pure java way to do this. Operating systems offer APIs to monitor file system a activity. You will probably need to call those APIs.

提交回复
热议问题