About 114,000 results
Open links in new tab
  1. How can I search sub-folders using glob.glob module?

    Feb 10, 2013 · You can use the function glob.glob() or glob.iglob() directly from glob module to retrieve paths recursively from inside the directories/files and subdirectories/subfiles.

  2. python - Regular expression usage in glob.glob? - Stack Overflow

    The expression path = r'.\**\*' means that the glob module will search for files in current directory recursively (recursive=True). You may also have to remove one backslash and an asterisk from path …

  3. python - How to use to find files recursively? - Stack Overflow

    Another way to do it using just the glob module. Just seed the rglob method with a starting base directory and a pattern to match and it will return a list of matching file names.

  4. python - Quicker to os.walk or glob? - Stack Overflow

    Jan 20, 2012 · I'm messing around with file lookups in python on a large hard disk. I've been looking at os.walk and glob. I usually use os.walk as I find it much neater and seems to be quicker (for usual size

  5. Python glob multiple filetypes - Stack Overflow

    Dec 31, 2010 · Is there a better way to use glob.glob in python to get a list of multiple file types such as .txt, .mdown, and .markdown? Right now I have something like this: projectFiles1 = glob.glob( os.path...

  6. python - How to install the 'glob' module? - Stack Overflow

    Python has a glob module built-in. if it's missing, the Python installation is broken and needs fixing. DO NOT install a random third-party package to "fix" this.

  7. Basic issue with glob in python - Stack Overflow

    Jan 20, 2021 · for filename in glob.glob(r'C:\Users\My username\Documents\DATA\*'): # Do you business Edit: As @poomerang has pointed out a shorter answer has previously been provided as to …

  8. getting file list using glob in python - Stack Overflow

    Nov 17, 2015 · 11 I have a list of csv files in mydir.I want to get the list of file names. however using glob as below is returning an empty list.

  9. Iterating through directories with Python - Stack Overflow

    glob.iglob glob.iglob(pathname, recursive=False) Return an iterator which yields the same values as glob() without actually storing them all simultaneously. If recursive is True, the pattern '**' will match …

  10. Python glob.glob can't find the file or returns empty list

    Feb 14, 2023 · Python glob.glob can't find the file or returns empty list Asked 2 years, 10 months ago Modified 2 years, 10 months ago Viewed 4k times