mds_plugin/object_store.py
def delete_file_from_list_from_bucket(index, os_client, objects,
                                      namespace_name, bucket_name,
                                      thread_count):
    """Deletes a file from a given file list

    Args:
        index (int): The thread index, specifying which files from the list to 
            upload
        os_client (object): An oci object store client instance
        files (list): The list of filenames as strings
        namespace_name (str): The OCI object store namespace of the tenancy
        bucket_name (str): The name of the bucket to upload to

    Returns:
       None
    """
    import os.path

    for o in objects:
        if hash(o.name) % thread_count == index:
            os_client.delete_object(
                namespace_name=namespace_name, bucket_name=bucket_name,
                object_name=o.name)
Deletes a file from a given file list

    Args:
        index (int): The thread index, specifying which files from the list to 
            upload
        os_client (object): An oci object store client instance
        files (list): The list of filenames as strings
        namespace_name (str): The OCI object store namespace of the tenancy
        bucket_name (str): The name of the bucket to upload to

    Returns:
       None
    
Deletes a file from a given file list
Deletes a file from a given file list
def delete_file_from_list_from_bucket(index, os_client, objects,
                                      namespace_name, bucket_name,
                                      thread_count):
    import os.path
    for o in objects:
        if hash(o.name) % thread_count == index:
            os_client.delete_object(
                namespace_name=namespace_name, bucket_name=bucket_name,
                object_name=o.name)
def delete_file_from_list_from_bucket ( index , os_client , objects , namespace_name , bucket_name , thread_count ) : import os . path for o in objects : if hash ( o . name ) % thread_count == index : os_client . delete_object ( namespace_name = namespace_name , bucket_name = bucket_name , object_name = o . name )
Deletes a file from a given file list
Deletes a file from a given file list
"""Deletes a file from a given file list

    Args:
        index (int): The thread index, specifying which files from the list to 
            upload
        os_client (object): An oci object store client instance
        files (list): The list of filenames as strings
        namespace_name (str): The OCI object store namespace of the tenancy
        bucket_name (str): The name of the bucket to upload to

    Returns:
       None
    """
None
index
The thread index, specifying which files from the list to
upload
The thread index specifying which files from the list to upload
os_client
An oci object store client instance
An oci object store client instance
objects
namespace_name
The OCI object store namespace of the tenancy
The OCI object store namespace of the tenancy
bucket_name
The name of the bucket to upload to
The name of the bucket to upload to
thread_count
files
The list of filenames as strings
The list of filenames as strings