summaryrefslogtreecommitdiff
path: root/paramiko/sftp_attr.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-07-10 00:00:03 -0700
committerRobey Pointer <robey@lag.net>2006-07-10 00:00:03 -0700
commitec6e76abc6b01e1c341d84558bcdb4ed223cbbf4 (patch)
tree4b7119875f289949753a47f33012bcb3de2e71f5 /paramiko/sftp_attr.py
parentab7c0fe9e81d63c043f0c81d803ae4ef9beedbd2 (diff)
downloadparamiko-ec6e76abc6b01e1c341d84558bcdb4ed223cbbf4.tar.gz
[project @ robey@lag.net-20060710070003-b9c4a1a7f7ab0ae9]
apparently some sftp servers may return an mtime of 0xffffffff -- just in case, ignore that value
Diffstat (limited to 'paramiko/sftp_attr.py')
-rw-r--r--paramiko/sftp_attr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py
index 3bc69fee..6a861b5d 100644
--- a/paramiko/sftp_attr.py
+++ b/paramiko/sftp_attr.py
@@ -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: