Greetings Group-
I'm trying to put together a pattern matching script that scans a
directory tree for tif images contained in similar folder names, but
running into a NewB problem already. Is it the way I'm trying to join
multiple paths? Any help would be greatly appericated. Thanks, J!
import glob, sys, os
topdir = sys.argv[1]
tifFilter = '*.tif'
dirFilter = '**'
tifList = glob.glob(os.path.join(topdir, tifFilter))
tifList = tifList + glob.glob(os.path.join(topdir, dirFilter,
tifFilter))
for tif in tifList:
print os.basename(tif) + " is in " + os.dirname(tif)