Write Metadata

(write_metadata) writes some metadata about where the file came from. TODO - could do this with fs xattr, but maybe that's not well known by users?

write_metadata(metadata, destfile)

Arguments

metadata

a dataframe containing metadata

destfile

filename into which the metadata should be written as JSON