title: How to list the files in S3 subdirectory using Python
body: <p>I'm trying to list the files under sub-directory in S3 but I'm not able to list the files name:  </p>
  
  <pre><code>import boto
  from boto.s3.connection import S3Connection
  access=''
  secret=''
  conn=S3Connection(access,secret)
  bucket1=conn.get_bucket('bucket-name')
  prefix='sub -directory -path'
  print bucket1.list(prefix) 
  files_list=bucket1.list(prefix,delimiter='/') 
  print files_list
  for files in files_list:
    print files.name
  </code></pre>
  
  <p>Can you please help me to resolve this issue.</p>