Looking at the table below, is this expected, or is it a bug?
path | current result | what I expected ---- | ---- | ---- `/aaa/bbb/cc/ccccc/ddddd` | `cc/.../ddddd` | `.../ddddd` `/aaa/bbb/xxx/yyy/cc/ccccc/ddddd` | `xxx/yyy/cc/.../ddddd` | `xxx/yyy/.../ddddd`