recursively search file python path return path code example Example: python glob subdirectories import glob subdirectories = glob.glob("./*/")