On Thu, 2005-09-01 at 13:07 -0400, Dan Christensen wrote: > Why not just: > > def trimpath(p): > p = os.path.realpath(p) > if p.startswith(root): > return p[len(root):] > return None [or p?] [or raise error?] The more correct answer would be to switch revert over to using the walk code, as all of its name handling is redundant and should die. <b