INNER CODE UNIT · Python

upload_key

fyoorer/ShadowClone · shadowclone.py:74

        upload_key = str(uuid.uuid4()) + ext
    else:
        upload_key = str(uuid.uuid4())

    try:
        storage.put_object(bucket=bucket_name, key=upload_key, body=contents)
        db.set(chunk_hash, bucket_name+'/'+upload_key)
        # printerr("[INFO] File uploaded successfully: "+ bucket_name + "/" + upload_key)
    except Exception as e:
        printerr("[ERROR] Error occured while accessing the storage bucket. Did you update the config.py file?")
        # exit()
        pass    
    return bucket_name+'/'+upload_key


def delete_bucket_files(fileslist):
    printerr("[INFO] Cleaning up")
    # storage = Storage()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…