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

Create the files path based on the date of creation #175

Open
david-caro opened this issue Mar 7, 2018 · 2 comments
Open

Create the files path based on the date of creation #175

david-caro opened this issue Mar 7, 2018 · 2 comments
Milestone

Comments

@david-caro
Copy link
Member

david-caro commented Mar 7, 2018

Currently we are using the following path structure (https://github.com/inveniosoftware/invenio-files-rest/blob/master/invenio_files_rest/helpers.py#L207):

base_uri/XX/YY/ZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ/data

Where XXYYZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ is the uuid of the file object. In order to help with the archival of the files, we should adapt it to a date based one, something like:

base_uri/YYYY/MM-wWW/ZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ/data

Where YYYY is the year, MM is the month, WW is the week number and ZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ the uuid of the file object.

@david-caro
Copy link
Member Author

I created this issue in this repo because currently it's where that path is generated.

@lnielsen please add/correct anything I might have messed up.

@david-caro
Copy link
Member Author

Related to inveniosoftware/invenio-xrootd#20

@lnielsen lnielsen added this to the someday milestone Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants