How To List Files In A Directory That Begins Given

[Solved] How To List Files In A Directory That Begins Given | Php - Code Explorer | yomemimo.com
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

Answers related to how to list files in a directory that begins given string

Code Explorer Popular Question For Php