I need to get the last modified file's name using paramiko
client.connect(hostname=server["host"], username=server["user"], pkey=pkey, allow_agent=False, look_for_keys=False)
sftp = client.open_sftp()
print("Connected!")
I don't know how to proceed from here!
I tried:
utime = sftp.stat("path").st_mtime
last_modified = datetime.fromtimestamp(utime)
print(last_modified)
someone can help me?