[issue13968] Support recursive globs

R. David Murray report at bugs.python.org
Thu Feb 9 19:03:56 CET 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

So given

  /home/a
  /home/a/k.py
  /home/a/c/j.py
  /home/b/z.py
  /home/b/c/f.py

and a current directory of /home/a, we'd have:

   pattern   matches
   -------   -------
   *.py      k.py, c/j.py
   c/*.py    c/j.py
   c*        c               [?]
   ../*.py   ?
   ../c/*.py ?

Thinking about those .. cases makes my brain hurt :)  What does it mean to match '../*.py' when I'm recursing into the c subdirectory?  What does it mean in the current directory, for that matter?

As you can see, your short explanation has left me with one case where I have a question, and one set of cases where my intuition completely fails.

--David

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13968>
_______________________________________


More information about the Python-bugs-list mailing list