Re: [Tutor] any help with this piece of code

2005-05-12 Thread Danny Yoo
On Thu, 12 May 2005, Richard gelling wrote: > fileToSearchFor = raw_input( "Type in the file name you want to search > for: ") > > if fileToSearchFor in fileList: > print "%s was found" % fileToSearchFor > else: > print "%s was not found" % fileToSearchFor > > Could someone explain to me

[Tutor] any help with this piece of code

2005-05-12 Thread Richard gelling
import os fileList = [] subDirectories = [] directories = [] directoryPath = raw_input( "Type in the path you want to start at: " ) for directory,subDirectory, files in os.walk( directoryPath ): directories.append( directory ) subDirectories.append( subDirectory ) fileList.append( fil