Commit da686324 authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos
Browse files

pithos: Do not make non existent directories when reading mapfiles

parent e17adcdc
......@@ -62,8 +62,6 @@ class FileMapper(object):
def _read_rear_map(self, maphash):
filename = hexlify(maphash)
dir = join(self.mappath, filename[0:2], filename[2:4], filename[4:6])
if not exists(dir):
makedirs(dir)
name = join(dir, filename)
return ContextFile(name, O_RDONLY)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment