Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Explain why we can do getmtime

  • Loading branch information...
commit 5397f642b957a8351bee6fee95ac0d5127f8f8c5 1 parent ba2bd23
@priteau priteau authored
View
1  control/src/python/workspacecontrol/defaults/imageprocurement/propagate_cache.py
@@ -46,6 +46,7 @@ def lookup(self, md5sum, newname):
self._unlock()
def _order_dir(self, list):
+ # We can use getmtime because we call os.utime on each lookup
list.sort(key=lambda x : os.path.getmtime(self._dir + "/" + x), reverse=True)
return list
Please sign in to comment.
Something went wrong with that request. Please try again.