Skip to content

Conversation

@tcnichol
Copy link
Contributor

This pull request adds the ro-crate metadata as well as bagit files.

Currently a metadata file is written for a file only if that file has metadata attached.

I think that the bagit stuff is implemented right, but could use some feedback on the ro-crate stuff.

@tcnichol tcnichol linked an issue Jul 25, 2022 that may be closed by this pull request
@tcnichol tcnichol requested review from lmarini and max-zilla July 25, 2022 19:23
@tcnichol tcnichol linked an issue Jul 25, 2022 that may be closed by this pull request
shutil.rmtree(current_temp_dir)
except Exception as e:
print("could not delete file")
print(e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use logger for this (see keycloak.py as example)

@max-zilla
Copy link
Contributor

I fixed one bug during testing with empty datasets - if you dont have any files, it would skip creating one of the manifest files and fail. After that, it all looked good.

@max-zilla max-zilla merged commit ce9f15a into main Sep 6, 2022
@max-zilla max-zilla deleted the 38-begin-adding-ro-crate-metadata branch September 6, 2022 14:43
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.

add bagit to dataset download begin adding ro crate metadata

3 participants