fixed 1756:scripts/sessions2trash.py doesn't work with 'separate=True', thanks Paolo Valleri

This commit is contained in:
Massimo
2013-11-07 10:25:29 -06:00
parent ee1de04544
commit e6f84c45b9
4 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ class SessionSetFiles(SessionSet):
def get(self):
"""Return list of SessionFile instances for existing sessions."""
path = os.path.join(current.request.folder, 'sessions')
return [SessionFile(os.path.join(path, x)) for x in os.listdir(path)]
root_path = os.path.join(current.request.folder, 'sessions')
return [SessionFile(os.path.join(path, x)) for path,dirs,files in os.walk(root_path) for x in files]
class SessionDb(object):