Changeset 589ad6cefbd3…
Parent 49d1b27ed01a…
by
Changes to one file · Browse files at 589ad6cefbd3 Showing diff from parent 49d1b27ed01a Diff from another changeset...
@@ -470,8 +470,10 @@ if os.path.isdir(sdir):
def getModificationTime(x):
return os.path.getmtime(os.path.join(sdir, x))
- return sorted(os.listdir(sdir),
+ shelves = sorted(os.listdir(sdir),
key=getModificationTime, reverse=True)
+ return [s for s in shelves if \
+ os.path.isfile(os.path.join(self.shelfdir, s))]
return []
def thginvalidate(self):
|
Loading...