1356
1366
:return: The canonical path
1361
1370
bit_iter = iter(path.split("/"))
1369
1378
# if we found an exact match, we can stop now; if
1370
1379
# we found an approximate match we need to keep
1371
1380
# searching because there might be an exact match
1374
1382
new_path = osutils.pathjoin(cur_path, child.name)
1376
1384
elif normalize(child.name) == lelt:
1378
1385
new_path = osutils.pathjoin(cur_path, child.name)
1380
1387
# before a change is committed we can see this error...