agrc / forklift

:tractor::package::sparkles: Slinging data all over the place :tractor::package::sparkles:
MIT License
27 stars 3 forks source link

Preserve metadata between crate's source and destination #347

Closed stdavis closed 2 years ago

stdavis commented 2 years ago

Currently, I don't believe that any metadata is copied from source to destination. We make forklift smart enough to copy the metadata over. Something similar to this may work:

source_md = md.Metadata(crate.source)
dest_md = md.Metadata(crate.destination)
dest_md.copy(source_md)
dest_md.save()