initial stage
This commit is contained in:
parent
d7e3e7a1b7
commit
fe50bf1475
|
@ -39,11 +39,15 @@ def s3_untar():
|
|||
for member in tar:
|
||||
dst_key = context["params"]["dst_key_prefix"] + member.name
|
||||
dst_key = dst_key.replace('//', '/')
|
||||
# Ignore directories, links, devices, fifos, etc.
|
||||
if not member.isfile():
|
||||
print(f"Skipping {member.name} to {dst_key}")
|
||||
continue
|
||||
print(f"Extracting {member.name} to {dst_key}")
|
||||
hook.load_file_obj(tar.extractfile(member),
|
||||
dst_key,
|
||||
context["params"]["dst_bucket"],
|
||||
replace=True)
|
||||
#hook.load_file_obj(tar.extractfile(member),
|
||||
# dst_key,
|
||||
# context["params"]["dst_bucket"],
|
||||
# replace=True)
|
||||
|
||||
untar()
|
||||
|
||||
|
|
Loading…
Reference in New Issue