'Python Glob Glob wildcard recursive search
I have a directory I want to search for all File names. I always use Glob and it works well. But I can't get this one to work. Please help.
The directory structure looks like
i:\\name\\type\\{type1,type2,type3}\\date\\{type4,type5}\\filename
I want to search recursively to get all the filenames at the end of this structure. I have tried many iterations of the following:
glob.glob(i:\\**\\**',recursive=True)
this one returns the top level directory only --> i:\name\type
Any other iteration I try returns nothing. For instance --> glob.glob(i:\name\type+'*\\',recursive=True)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
