Revision 14c9e061
b/snf-pithos-backend/pithos/backends/lib/hashfiler/filemapper.py | ||
---|---|---|
62 | 62 |
def _read_rear_map(self, maphash): |
63 | 63 |
filename = hexlify(maphash) |
64 | 64 |
dir = join(self.mappath, filename[0:2], filename[2:4], filename[4:6]) |
65 |
if not exists(dir): |
|
66 |
makedirs(dir) |
|
67 | 65 |
name = join(dir, filename) |
68 | 66 |
return ContextFile(name, O_RDONLY) |
69 | 67 |
|
Also available in: Unified diff