Revision 31a1c80d
b/pithos/backends/simple.py | ||
---|---|---|
99 | 99 |
except NameError: |
100 | 100 |
version_id = None |
101 | 101 |
count, bytes, tstamp = self._get_pathstats(account, until) |
102 |
if mtime > tstamp: |
|
103 |
tstamp = mtime |
|
102 | 104 |
if until is None: |
103 | 105 |
modified = tstamp |
104 | 106 |
else: |
105 | 107 |
modified = self._get_pathstats(account)[2] # Overall last modification |
108 |
if mtime > modified: |
|
109 |
modified = mtime |
|
106 | 110 |
|
107 | 111 |
# Proper count. |
108 | 112 |
sql = 'select count(name) from (%s) where name glob ? and not name glob ?' |
... | ... | |
161 | 165 |
|
162 | 166 |
path, version_id, mtime = self._get_containerinfo(account, container, until) |
163 | 167 |
count, bytes, tstamp = self._get_pathstats(path, until) |
168 |
if mtime > tstamp: |
|
169 |
tstamp = mtime |
|
164 | 170 |
if until is None: |
165 | 171 |
modified = tstamp |
166 | 172 |
else: |
167 |
modified = self._get_pathstats(account)[2] # Overall last modification |
|
173 |
modified = self._get_pathstats(path)[2] # Overall last modification |
|
174 |
if mtime > modified: |
|
175 |
modified = mtime |
|
168 | 176 |
|
169 | 177 |
meta = self._get_metadata(path, version_id) |
170 | 178 |
meta.update({'name': container, 'count': count, 'bytes': bytes, 'modified': modified}) |
Also available in: Unified diff