Lines 107-113
Link Here
|
107 |
dirs = [self.location] |
107 |
dirs = [self.location] |
108 |
len_base = len(self.location) |
108 |
len_base = len(self.location) |
109 |
while len(dirs): |
109 |
while len(dirs): |
110 |
for l in os.listdir(dirs[0]): |
110 |
try: |
|
|
111 |
dir_list = os.listdir(dirs[0]) |
112 |
except OSError, e: |
113 |
if e.errno != errno.ENOENT: |
114 |
raise |
115 |
del e |
116 |
dirs.pop(0) |
117 |
continue |
118 |
for l in dir_list: |
111 |
if l.endswith(".cpickle"): |
119 |
if l.endswith(".cpickle"): |
112 |
continue |
120 |
continue |
113 |
p = os.path.join(dirs[0],l) |
121 |
p = os.path.join(dirs[0],l) |