Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hash if file last modification date has changed #107

Closed
rdiez opened this issue Jan 17, 2020 · 2 comments
Closed

Update hash if file last modification date has changed #107

rdiez opened this issue Jan 17, 2020 · 2 comments
Labels

Comments

@rdiez
Copy link

rdiez commented Jan 17, 2020

I have a large amount of data, where just a few files change every now and then.

It would be nice for rhash to store the "last modified" timestamp of all files, in order to update the hashes only of all those files that have been modified since the last time around.

It would also be nice if rhash deleted the hashes for those files which no longer exist.

Or is there a way to achieve that, maybe with an external script?

@rhash
Copy link
Owner

rhash commented Jun 29, 2020

You should write your own script, for example in python. JSON and 'tab delimited' formats look convenient for storing timestamp along with path and file hash.

Use example from #109 and the test_rhash.py script as a starting point.

@rdiez
Copy link
Author

rdiez commented Jun 29, 2020

I forgot this GitHub issue. I have already written such a script, look here:

RDChecksum

I guess we could close this issue. There does not seem to be much interest in this kind of feature for RHash anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants