I am currently trying to create a scan system, which identifies files that have been modified since the previous scan.
It will work on some directories/files and identify the content which have been changed.
I am planning to use Hashing as a mechanism to find modification in files/folders.
Hash functions tend to work on content of the file/folder for computation of its hash. But i am not quite sure about it. Since some modified hashing algorithms also take into account the metadata of the file while computing its hash.
So I just want to know that does hashing takes into account the content of the file only, or even its metadata?
And is my way of identifying changes in file good enough, or there exists an improvement too?