(self, local_file)
return md5_key
Add ancillary file
Add ancillary file
Add ancillary file
def add_ancillary_file(self, local_file):
        """ Add ancillary file"""

        config = self.config
        md5_sum = self._get_md5_sum(local_file)

        md5_file = f'{local_file}.md5'
        filename = os.path.split(md5_file)[1]
        collection_string = (f'{config["collection"]["name"]}__' +
                             f'{config["collection"]["version"]}')
        md5_key = (f's3://{config["buckets"]["internal"]["name"]}/staging/' +
                   f'{config["stack"]}/{collection_string}/{filename}')
        self._write_md5sum_file(md5_file, md5_sum)
        upload(md5_file, md5_key)
        return md5_key
def add_ancillary_file ( self , local_file ) : config = self . config md5_sum = self . _get_md5_sum ( local_file ) md5_file = f'{local_file}.md5' filename = os . path . split ( md5_file ) [ 1 ] collection_string = ( f'{config["collection"]["name"]}__' + f'{config["collection"]["version"]}' ) md5_key = ( f's3://{config["buckets"]["internal"]["name"]}/staging/' + f'{config["stack"]}/{collection_string}/{filename}' ) self . _write_md5sum_file ( md5_file , md5_sum ) upload ( md5_file , md5_key ) return md5_key