python find all files matching pattern recursively code example Example: python glob subdirectories import glob subdirectories = glob.glob("./*/")