Fix GetCanonicalPathAsync resolving full path instead of parent
Merged
GI
5d ago+22+22+01234567890123456789-67-67-01234567890123456789
Fixes #1863
First time contributing to this project, relatively trivial, but still a bug I think worth fixing. Discovered this issue when looking at MoveTo vs RenameAsync; I've made the relevant change and tried to adhere to the standards/contributing docs; let me know if I've missed something.
The fix itself just moves the problematic implementation details into shared methods (because they previously differ); I've added some tests again trying to adhere to the style in the project.
AI not used to write the change.