I m试图取得以下产出:2_YEAR_912828SR2_20120514.dat 1337045684
,并创建名词典,名称为关键值和日期
#get file attributes
datadict = {}
file_list_attr = sftp.listdir_attr()
for f in (file_list_attr):
fname = f.filename
fdate = f.st_mtime
print fname, fdate
2_YEAR_912828SR2_20120514.dat 1337045684