[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: Library (Lib)
messages: 329537
nosy: daniel
priority: normal
severity: normal
status: open
title: Recursive '**' matches non-existent directories.
type: behavior
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue35201>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue35201>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com