finding a file

emile at fenx.com emile at fenx.com
Mon May 8 21:55:51 CEST 2000


>>> import os
>>> def dosomething(filename, directory, args):
	print directory, filename
>>> os.path.walk(r"d:\search\start\path\here", dosomething, [])


Scott Hathaway <slhath at flash.net> wrote in message
news:<QMER4.9431$wb7.785410 at news.flash.net>...
> How do I find a file on a drive (under Win 32)?  For example, if I want to
> search the entire D: drive and all of it's subdirectories?
> 
> Thanks,
> Scott
> 
> 
> -- 
> http://www.python.org/mailman/listinfo/python-list
>




More information about the Python-list mailing list