On 25/05/23 7:49 pm, BlindAnagram wrote:
The first of these three results produces an incorrect relative path because relpath does not strip off any non-directory tails before comparing paths.

It has no way of knowing whether a pathname component is a directory
or not. It's purely an operation on strings, it doesn't look in the
file system.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to