10 lines
201 B
Python
10 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))
|