Answers for "search for file in a whole system"

0

search for file in a whole system

import os

def search(drive,name):
    for dirpath, dirs, files in os.walk(drive):
        if name in files:
            return (os.path.join(dirpath, name))
Posted by: Guest on May-31-2021

Code answers related to "search for file in a whole system"

Python Answers by Framework

Browse Popular Code Answers by Language