Zoek een bericht in Windows met Python

If you ever feel redundant…

Just remember that this guy felt the need to replicate the bare bones of a function that was already present in Windows for decades.

import os

bestand = 'output_data.csv'

for folders, subfolders, files in os.walk('c:\\'):
    if bestand in files:
        print(folders, subfolders, files)

Leave Comment

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *