import os
asps = []
for root, dirs, files in os.walk('C:\\web'):
    for file in files:
        if file.endswith('.asp'):
            asps.append(file)
How can I create a list of files in the current directory and its subdirectories with a given extension?