title: python oci:Oracle Cloud Infrastruture: How to list files in a bucket
body: <p>I am trying to print the files in a bucket on Oracle cloud. I have installed oci library for it and came this far. Now I dont know further how to get list of files in a particular bucket.</p>
  
  <pre><code>import os,oci
  from oci.config import validate_config
  
  tenancyId="sdkfh" # Your tenancies OCID.
  authUserId="sdjfs"; # The OCID of the user ID being used.
  OCI_KEY_PATH="filename"; # Path of the key file.
  keyFingerprint="12:13:14:15"; # The fingerprint of the key file being used
  
  config = {
      "user": authUserId,
      "key_file": OCI_KEY_PATH,
      "fingerprint": keyFingerprint,
      "tenancy": tenancyId,
      "region": "us-phoenix-1"
  }
  
  validate_config(config)
  
  identity = oci.identity.IdentityClient(config)
  user = identity.get_user(config["user"]).data
  print(user)
  </code></pre>