Question : HOw to list files in a directory that begins given string
Answered by : kumar-gaurav-sk04pkbly8a3
for file in os.listdir("/Users/darren/Desktop/test"): if file.startswith("art"): print(file)
Source : https://programmingwithswift.com/python-list-files-with-starting-with-given-string/ | Last Update : Wed, 28 Apr 21