finished prefix-path-trimming