I need to find a file that is hidden somewhere in a directory tree. So I search for it recursively. On UNIX the “find” command works just fine for this, but I wanted a Python native solution and finally came up with both:
import os
def findFile(name, directory):
“”"
[...]

