How to compare 2 volumes and list modified files?

后端 未结 5 1073
遇见更好的自我
遇见更好的自我 2021-01-14 11:21

I have 2 hard-disk volumes(one is a backup image of the other), I want to compare the volumes and list all the modified files, so that the user can select the ones he/she wa

5条回答
  •  醉梦人生
    2021-01-14 11:52

    I am not a Windows programmer. However shouldn't u have stat function to retrieve the modified time of a file. Sort the files based on mod time. The files having mod time greater than your last backup time are the ones of your interest.

    For the first time u can iterate over the back up volume to figure out the max mod time and created time from your interested set. I am assuming the directories of interest don't get modified in the backup volume.

提交回复
热议问题