0
我想列出S3下子目录中的文件,但我不能列出文件名以列出S3子目录中的文件:如何使用Python
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
能否请你帮我来解决这个问题。