Mostly Linux & Python syntax notes and hyperlinks.
import os ... dirname=os.getcwd() ext_name=".txt" ... try: for file in os.listdir(dirname): if file.endswith(ext_name): #do whatever except:
No comments:
Post a Comment