apparently some sftp servers may return an mtime of 0xffffffff -- just in case, ignore that value
This commit is contained in:
parent
ab7c0fe9e8
commit
ec6e76abc6
|
@ -200,7 +200,7 @@ class SFTPAttributes (object):
|
|||
else:
|
||||
ks = '?---------'
|
||||
# compute display date
|
||||
if self.st_mtime is None:
|
||||
if (self.st_mtime is None) or (self.st_mtime == 0xffffffff):
|
||||
# shouldn't really happen
|
||||
datestr = '(unknown date)'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue