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

Add option to create UUID directory for each file #10

Merged
merged 4 commits into from
Apr 22, 2023
Merged

Add option to create UUID directory for each file #10

merged 4 commits into from
Apr 22, 2023

Conversation

jmshrv
Copy link
Contributor

@jmshrv jmshrv commented Apr 21, 2023

This PR adds a boolean option create_uuid_dir, which allows the user to have files go into a unique UUID path. For example, when uploading file.txt, the resulting path will be something like 0daeb186-8286-4eda-b525-155988b07c81/file.txt.

For this to really be useful, #6 needs to be fixed so that we can return the path

@git001
Copy link
Owner

git001 commented Apr 22, 2023

Thank you for contribution. That's a great solution, just bring the MkdirAll block and below outsite of the if u.CreateUuidDir { as the directories have to be created even when the boolen CreateUuidDir is not set, Thank you.

@git001 git001 merged commit ca7ef14 into git001:main Apr 22, 2023
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

Successfully merging this pull request may close these issues.

2 participants