import glob print('Inside current directory') files = glob.glob("D:**",recursive=True) for item in files: print(item)