ok fatto.
serve importare os e usare i suoi attributi filename, st_mtime, ecc....
codice:
import paramiko
import traceback
import sys
import os
import time
try:
t = paramiko.Transport((........))
t.connect(........)
sftp = paramiko.SFTPClient.from_transport(t)
attr = sftp.listdir_attr('public_html/TXT_CRONOS/log')
print "NOME " + "DATA " + "DIMENSIONE"
for i in attr:
print i.filename + " - " + time.ctime(i.st_mtime)
sftp.close()
t.close()
except Exception, e:
print '*** Caught exception: %s: %s' % (e.__class__, e)
traceback.print_exc()
try:
t.close()
except:
pass
sys.exit(1)