9 lines
201 B
Python
9 lines
201 B
Python
import fnmatch
|
|
import os
|
|
|
|
rootPath = '/'
|
|
pattern = '*.mp3'
|
|
|
|
for root, dirs, files in os.walk(rootPath):
|
|
for filename in fnmatch.filter(files, pattern):
|
|
print( os.path.join(root, filename))
|