How to quickly find added / removed files?

前端 未结 10 2527
情深已故
情深已故 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:44

    Try using git. Version control software is geared towards this kind of problem, and git has a good reputation for speed; it's specifically designed for working fast with local files. 'git diff --name-status' would get you what you want I think.

提交回复
热议问题