[Solved] How Can I Find For Example *.mp3 Files From All Directories Of My System? [closed]


If you’re using python, os.walk can help you.

Simple code like this can work:

import os

for data in os.walk('d:\\music'): # where to start searching
    dir_path, folders, files = data

    for f in files:
        if f.lower().endswith('.mp3'):
            print(os.path.join(dir_path, f))

0

solved How Can I Find For Example *.mp3 Files From All Directories Of My System? [closed]