How to quickly find added / removed files?

前端 未结 10 2624
情深已故
情深已故 2020-12-25 08:28

I am writing a little program that creates an index of all files on my directories. It basically iterates over each file on the disk and stores it into a searchable database

10条回答
  •  清歌不尽
    2020-12-25 08:55

    Unfortunately there's no standard way to listen to file system events in java. This may be coming in java7.

    For now, you'll have to google "java filesystem events" and pick the custom implementation that matches your platform.

提交回复
热议问题