Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pattern glob extension searching

import glob, os

os.chdir("my_dir")

for file in glob.glob("*.txt"):
    print(file)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #pattern #glob #extension #searching
ADD COMMENT
Topic
Name
7+6 =