Show More
@@ -26,7 +26,9 b' def listdir(path, stat=False, skip=None)' | |||||
26 | (name, type) |
|
26 | (name, type) | |
27 | ''' |
|
27 | ''' | |
28 | result = [] |
|
28 | result = [] | |
29 |
prefix = path |
|
29 | prefix = path | |
|
30 | if not prefix.endswith(os.sep): | |||
|
31 | prefix += os.sep | |||
30 | names = os.listdir(path) |
|
32 | names = os.listdir(path) | |
31 | names.sort() |
|
33 | names.sort() | |
32 | for fn in names: |
|
34 | for fn in names: |
@@ -856,7 +856,7 b' def _statfiles_clustered(files):' | |||||
856 | if pos == -1: |
|
856 | if pos == -1: | |
857 | dir, base = '.', nf |
|
857 | dir, base = '.', nf | |
858 | else: |
|
858 | else: | |
859 | dir, base = nf[:pos], nf[pos+1:] |
|
859 | dir, base = nf[:pos+1], nf[pos+1:] | |
860 | cache = dircache.get(dir, None) |
|
860 | cache = dircache.get(dir, None) | |
861 | if cache is None: |
|
861 | if cache is None: | |
862 | try: |
|
862 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now