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:
|
else:
|
||||||
ks = '?---------'
|
ks = '?---------'
|
||||||
# compute display date
|
# compute display date
|
||||||
if self.st_mtime is None:
|
if (self.st_mtime is None) or (self.st_mtime == 0xffffffff):
|
||||||
# shouldn't really happen
|
# shouldn't really happen
|
||||||
datestr = '(unknown date)'
|
datestr = '(unknown date)'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue