Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python glob.glob recursive

import os

path = 'C:/Users/sam/Desktop/file1'

configfiles = [os.path.join(dirpath, f)
    for dirpath, dirnames, files in os.walk(path)
    for f in files if f.endswith('.txt')]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #recursive
ADD COMMENT
Topic
Name
4+8 =