On 2/09/20 6:55 am, Eryk Sun wrote:
According to POSIX (st_dev, st_ino), it's the same directory, yet the
".." entry evaluates depending on the path parsing context:

     >>> os.lstat('test1/spam/..').st_ino == os.lstat('test1').st_ino
     True
     >>> os.lstat('test2/spam/..').st_ino == os.lstat('test2').st_ino
     True

What happens if you go one level deeper? I.e. is
os.lstat('test1/spam/eggs/../..').st_ino == os.lstat('test1').st_ino
and
os.lstat('test2/spam/eggs/../..').st_ino == os.lstat('test2').st_ino
?

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

Reply via email to