[issue35201] Recursive '**' matches non-existent directories.

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: not a bug -> versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ __

[issue35201] Recursive '**' matches non-existent directories.

2018-11-11 Thread Daniel Israel
Daniel Israel added the comment: In the Bash example, you created the directory empty/. This bug is specifically when the directory in question does not exist. -- ___ Python tracker ___

[issue35201] Recursive '**' matches non-existent directories.

2018-11-09 Thread Windson Yang
Change by Windson Yang : -- versions: +Python 3.5, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue35201] Recursive '**' matches non-existent directories.

2018-11-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is expected behavior, and it matches the behavior of Bash. $ mkdir empty $ shopt -s globstar failglob $ echo empty/* bash: no match: empty/* $ echo empty/** empty/ "**" matches zero or more path components. In this case case it matches zero. -

[issue35201] Recursive '**' matches non-existent directories.

2018-11-09 Thread Daniel Israel
New submission from Daniel Israel : In the following case, when there is no file or directory 'a', glob will still return it: >>> glob.glob("a/**", recursive=True) [ 'a/' ] Note that this is inconsistent with the '*' pattern: >>> glob.glob("a/*", recursive=True) [] -- components: Li