def extract_headers_meta(headers): meta = {} for k in chunk_headers.iterkeys(): try: meta[k] = headers[chunk_headers[k]] except KeyError as e: if k not in chunk_xattr_keys_optional: raise e return meta
def extract_headers_meta(headers): meta = {} for k in chunk_headers.iterkeys(): try: meta[k] = headers[chunk_headers[k]] except KeyError as e: if k not in chunk_xattr_keys_optional: raise e if meta['full_path']: meta['full_path'] = meta['full_path'].split(',') return meta