fixed syntax mistake
This commit is contained in:
parent
25eb89d33d
commit
d66e2d2b93
@ -117,5 +117,5 @@ class sftp_remote:
|
|||||||
last_modified = datetime.fromtimestamp(utime)
|
last_modified = datetime.fromtimestamp(utime)
|
||||||
if (datetime.now() - last_modified) > timedelta(days=30 * 3):
|
if (datetime.now() - last_modified) > timedelta(days=30 * 3):
|
||||||
print('deleting file remotely: ', pathfile)
|
print('deleting file remotely: ', pathfile)
|
||||||
self.sftp.remove(path)
|
self.sftp.remove(pathfile)
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
|
Loading…
Reference in New Issue
Block a user