[issue22276] pathlib glob ignores trailing slash in pattern

2021-11-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: Generally if Path is created with a trailing separator, I think it should error out for all methods that apply to files, for example `.touch()`, `read*()`, `write*()`, others. This is consistent with shell commands: touch xyz/

[issue22276] pathlib glob ignores trailing slash in pattern

2021-11-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: I meant to say: path.glob('myfile/') => [PosixPath('myfile')] -- ___ Python tracker ___ ___ Pyth

[issue22276] pathlib glob ignores trailing slash in pattern

2021-11-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: I have also run into this when looking into path.glob('dangling_symlink') issue. I can add a few things (in the examples, *myfile* is a file, not a directory): This is probably more common / less obscure than '*/': path.glob('myfile/') => True This is incon

[issue22276] pathlib glob ignores trailing slash in pattern

2018-11-05 Thread E Kawashima
Change by E Kawashima : -- keywords: +patch pull_requests: +9649 stage: test needed -> patch review ___ Python tracker ___ ___ Pytho

[issue22276] pathlib glob ignores trailing slash in pattern

2018-05-04 Thread SilentGhost
Change by SilentGhost : -- assignee: -> emilyemorehouse nosy: +brianmsheldon, emilyemorehouse stage: -> test needed versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker __

[issue22276] pathlib glob ignores trailing slash in pattern

2018-05-04 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue22276] pathlib glob ignores trailing slash in pattern

2018-05-04 Thread SilentGhost
Change by SilentGhost : -- nosy: +robbuckley -brianmsheldon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22276] pathlib glob ignores trailing slash in pattern

2014-08-29 Thread R. David Murray
R. David Murray added the comment: I'm not sure that a trailing '/' is a "path characteristic" in the same sense that a symlink is. Whether the path has a trailing slash or not has meaning both to the user and to the OS. pathlib isn't just modeling actual path objects on the file system, but

[issue22276] pathlib glob ignores trailing slash in pattern

2014-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: pathlib glob issues -> pathlib glob ignores trailing slash in pattern ___ Python tracker ___ ___