Show More
@@ -88,7 +88,7 b' class CleanupCommand(BasePasterCommand):' | |||||
88 |
|
88 | |||
89 | repos_location = RhodeCodeUi.get_repos_location() |
|
89 | repos_location = RhodeCodeUi.get_repos_location() | |
90 | to_remove = [] |
|
90 | to_remove = [] | |
91 | for dn, dirs, f in os.walk(str(repos_location)): |
|
91 | for dn, dirs, f in os.walk(safe_str(repos_location)): | |
92 | for loc in dirs: |
|
92 | for loc in dirs: | |
93 | if REMOVED_REPO_PAT.match(loc): |
|
93 | if REMOVED_REPO_PAT.match(loc): | |
94 | to_remove.append([loc, self._extract_date(loc)]) |
|
94 | to_remove.append([loc, self._extract_date(loc)]) |
@@ -46,7 +46,7 b' def _get_scm_size(alias, root_path):' | |||||
46 | alias += '.' |
|
46 | alias += '.' | |
47 |
|
47 | |||
48 | size_scm, size_root = 0, 0 |
|
48 | size_scm, size_root = 0, 0 | |
49 | for path, dirs, files in os.walk(root_path): |
|
49 | for path, dirs, files in os.walk(safe_str(root_path)): | |
50 | if path.find(alias) != -1: |
|
50 | if path.find(alias) != -1: | |
51 | for f in files: |
|
51 | for f in files: | |
52 | try: |
|
52 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now