<filename>glob/glob_subdir.py
#!/usr/bin/env python

"""Listing files in a subdirectory.

"""

import glob

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

print 'Named with wildcard:'
for name in glob.glob('dir/*/*'):
    print '\t', name

<filename>glob/glob_subdir.py
#!/usr/bin/env python

"""Listing files in a subdirectory.

"""

import glob

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

print 'Named with wildcard:'
for name in glob.glob('dir/*/*'):
    print '\t', name

#!/usr/bin/env python Listing files in a subdirectory.