INNER CODE UNIT · Python

delete_bucket_files

fyoorer/ShadowClone · shadowclone.py:89

def delete_bucket_files(fileslist):
    printerr("[INFO] Cleaning up")
    # storage = Storage()
    keys = []
    bucket_name = fileslist[0].split('/')[0]
    for f in fileslist:
        keys.append(f.split('/')[1])
    
    # delete all at once
    try:
        storage.delete_objects(bucket=bucket_name, key_list=keys)
    except Exception as e:
        raise e
    return


# This function runs in cloud
def execute_command_chunks(obj, command, nosplit, bucket_name, scan_id, storage):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…