title: Download all files from specific folder from Amazon S3 using boto3 Python
body: <p>As I am new to python.Need help in downloading all files from Specific pseudo-folder present inside S3 bucket.Below code starts downloading all files present inside bucket.How can I can achieve my goal.</p>
  
  <pre><code>import os
  import errno
  import boto3
  import botocore
  
  
  resource = boto3.resource('s3')
  bucket = resource.Bucket('my-bucket')
  client = boto3.client('s3')
  
  def download_dir():
  objList = client.list_objects(Bucket='my-bucket')['Contents']
  for obj in objList:
      obj_Key = obj['Key']
      path,_destPath = os.path.split(obj_Key)
      print ("Downloading file :"+ obj_Key);
      client.download_file('my-bucket', obj_Key, _destPath)
  
  download_dir()
  </code></pre>
  
  <p>Thanks in advance</p>