Answers for "find files python"

0

find a file in python

import os

def find(name, path):
    for root, dirs, files in os.walk(path):
        if name in files:
            return os.path.join(root, name)
Posted by: Guest on December-16-2021

Code answers related to "find files python"

Python Answers by Framework

Browse Popular Code Answers by Language