def gen_find(filepat, top):
    for path, dirlist, filelist in os.walk(top):
        for name in fnmatch.filter(filelist, filepat):
            yield os.path.join(path, name)
if __name__ == '__main__':
    src = (
        'O:\\DATA\\ASTER GDEM\\Original\\North America\\UTM Zone 14\\USA\\Extracted'
        )
dst = (
    'O:\\DATA\\ASTER GDEM\\Original\\North America\\UTM Zone 14\\USA\\Analyses'
    )
Перемещение определенных файлов в подкаталогах в каталог — python