Message404996
Create a symlink that points to file that doesn't exist:
ln -s /nonexisting_file my_symlink
Then try to glob for that symlink from Python using pathlib:
python3
>>> import pathlib
>>> list(pathlib.Path(".").glob("my_symlink"))
[]
>>> list(pathlib.Path(".").glob("my_symlink*"))
[PosixPath('my_symlink')]
I'm a bit surprised that these two globs do not return the same results. Personally I would expect both to find the symlink.
Is this behaviour a bug or is it intentional? |
|
Date |
User |
Action |
Args |
2021-10-25 19:20:55 | raek | set | recipients:
+ raek |
2021-10-25 19:20:55 | raek | set | messageid: <1635189655.12.0.290768542952.issue45606@roundup.psfhosted.org> |
2021-10-25 19:20:55 | raek | link | issue45606 messages |
2021-10-25 19:20:55 | raek | create | |
|