[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-18 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.9 ___ Python tracker ___

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-18 Thread miss-islington
miss-islington added the comment: New changeset ae36cd1e792db9d6db4c6847ec2a7d50a71f2b68 by andrei kulakov in branch 'main': bpo-37578: glob.glob -- added include_hidden parameter (GH-30153) https://github.com/python/cpython/commit/ae36cd1e792db9d6db4c6847ec2a7d50a71f2b68 -- nosy:

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: I want to clarify my first comment: my PR is similar to Zsh behaviour as described above; as I'm not 100% sure how bash behaves with `**` with globstar option, I can say that bash is the same as Zsh with ? and * magic characters (with dotglob option), and

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: Isaac: my PR does allow [.] to match. But I probably need to update the docs to note that. -- ___ Python tracker ___

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Isaac Muse
Isaac Muse added the comment: If this was to be done, you'd want to make sure character sequences also match hidden files: [.]. Just * and ? would be incomplete. If allowing ** to match a leading dot, it would not match . or .. -- nosy: +Isaac Muse

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: Zsh allows use of *, ? and ** to match hidden files and directories. Bash allows the same for * and ? with `dotglob` option. There is also a `globstar` but my version of bash (on macos) is too old to have it. By the way setting options in bash is done with

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 5.0 -> 6.0 pull_requests: +28372 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30153 ___ Python tracker

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-04-22 Thread Petr Viktorin
Petr Viktorin added the comment: I wonder if it would be worth it to add a new option to include hidden files (except . and ..) For the record, setuptools' fork of glob does this unconditionally: https://github.com/pypa/setuptools/blob/main/setuptools/glob.py -- nosy: +petr.viktorin

[issue37578] Change Glob: Allow Recursion for Hidden Files

2020-07-10 Thread Wansoo Kim
Wansoo Kim added the comment: Can you reproduce this bug? I was able to find the hidden file by recursive search by excuting the code below. ``` from glob import glob hidden = glob('**/.*') print(hidden) ``` -- nosy: +ys19991 ___ Python tracker

[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-17 Thread myungsekyo
Change by myungsekyo : -- nosy: +myungsekyo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is an interesting question. What other implementations behave? -- ___ Python tracker ___

[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Library (Lib) nosy: +serhiy.storchaka versions: +Python 3.9 ___ Python tracker ___

[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-12 Thread Kalev Maricq
New submission from Kalev Maricq : First, sorry if this isn't in the correct place or correctly labeled. I'm new to this platform. Feel free to edit this (if that's even possible on this platform). In the glob.py module, _ishidden(pattern) is used to determine whether to show hidden files