Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python glob

import glob

print 'Named explicitly:'
for name in glob.glob('dir/subdir/*'):
    print '	', name

print 'Named with wildcard:'
for name in glob.glob('dir/*/*'):
    print '	', name
Source by pymotw.com #
 
PREVIOUS NEXT
Tagged: #python #glob
ADD COMMENT
Topic
Name
4+6 =