faqts : Computers : Programming : Languages : Python : Modules : file

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 5 people (40%) answered Yes
Recently 2 of 5 people (40%) answered Yes

Entry

How do i find files in a path

Jun 26th, 2006 08:04
dennis bartlett, chempaka biru, try glob()


import glob     # http://diveintopython.org/file_handling/os_module.html
#      <<-------------find all clw files in AND below TPA2007---->>
files = glob.glob("c:\\source\\TPA2007\\*\\*.clw")
for fil in files: