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

Resource File Sizes #10

Open
wants to merge 2 commits into
base: canada-py3
Choose a base branch
from
Open

Conversation

JVickery-TBS
Copy link

feat(dev): filesize;

  • Set filesize attribute when uploading a new file.
  • CLI command to recalculate file sizes of uploaded and active resources.

@wardi basically as CKAN Core package_update is supposed to use the filesize attribute of the ResourceUploader class to set the filesizes, I have just added that calculation into the CloudStorage class when uploading a new file.

I also added in a CLI command which can download upload files and set the file size, albeit it would take a very very long time to go through all of that. But the option is there I guess.

- Set filesize attribute when uploading a new file.
- CLI command to recalculate file sizes of uploaded and active resources.
@JVickery-TBS JVickery-TBS added the bug Something isn't working label Oct 29, 2024
- Added change log file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants