glob.glob doesn't fetch give all files name in glob.glob code example Example: python glob subdirectories import glob subdirectories = glob.glob("./*/")