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

Reverse file lookup #314

Open
delgadom opened this issue Jun 14, 2017 · 0 comments
Open

Reverse file lookup #314

delgadom opened this issue Jun 14, 2017 · 0 comments

Comments

@delgadom
Copy link
Member

delgadom commented Jun 14, 2017

How freaking cool would it be if you could point datafs to a file and it would return all the archive/version combos that match the hash value? Then if people had downloaded it, changed the name, etc., you could still trace the origin and get the metadata!!!

Example:

    $ echo "this is a file" > myfile.txt
    $ datafs create my_new_archive.txt --description "some contents" --tag "textfile"
    $ datafs update my_new_archive.txt myfile.txt --bumpversion major
    archive <osdc://my_new_archive.txt>updated to version 1.0
    $ mv myfile.txt anotherfile.txt
    $ datafs lookup anotherfile.txt
    <osdc://my_new_archive.txt> v1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant