Switch to unified view
a/fuse/accessfs.py | b/fuse/accessfs.py | ||
---|---|---|---|
... |
... |
||
343 | def _mangle(self, path): |
343 | def _mangle(self, path): |
344 | '''Convert paths from the form /SCM/neighborhood/project/a/b/c to |
344 | '''Convert paths from the form /SCM/neighborhood/project/a/b/c to |
345 | /SCM/project.neighborhood/a/b/c |
345 | /SCM/project.neighborhood/a/b/c |
346 | ''' |
346 | ''' |
347 | parts = [ p for p in path.split(os.path.sep) if p ] |
347 | parts = [ p for p in path.split(os.path.sep) if p ] |
348 | nbhd, proj, rest = parts[0], parts[1], parts[2:] |
348 | scm, nbhd, proj, rest = parts[0], parts[1], parts[2], parts[3:] |
349 | parts = ['/SCM/%s.%s' % (proj, nbhd) ] + rest |
349 | parts = ['/SCM/%s.%s' % (proj, nbhd) ] + rest |
350 | return '/'.join(parts) |
350 | return '/'.join(parts) |
351 | 351 | ||
352 | class UnixUsernameCache(object): |
352 | class UnixUsernameCache(object): |
353 | 353 |