I want to download all the files and folders in the bucket. This is my code
conn = boto.connect_s3(AWS_ACCESS_KEY_ID,
AWS_ACCESS_KEY_SECRET)
bucket = conn.get_bucket(bucket_name)
key = boto.s3.key.Key(bucket)
key.get_contents_to_filename('path/to/folder')
error-
File "C:\Python27\lib\site-packages\boto\s3\key.py", line 1726, in get_contents_to_filename
os.remove(filename)
WindowsError: [Error 5] Access is denied: 'path/to/folder'
Please help me overcome the problem!