diff options
author | Robey Pointer <robey@lag.net> | 2006-07-10 00:00:03 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-07-10 00:00:03 -0700 |
commit | ec6e76abc6b01e1c341d84558bcdb4ed223cbbf4 (patch) | |
tree | 4b7119875f289949753a47f33012bcb3de2e71f5 | |
parent | ab7c0fe9e81d63c043f0c81d803ae4ef9beedbd2 (diff) |
[project @ robey@lag.net-20060710070003-b9c4a1a7f7ab0ae9]
apparently some sftp servers may return an mtime of 0xffffffff -- just in case, ignore that value
-rw-r--r-- | paramiko/sftp_attr.py | 2 |
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: |