Re: Searching for a file

Mats Wichmann <[email protected]>
Newsgroups gmane.comp.python.general
Message-ID <[email protected]>
On 5/22/25 21:04, Rob Cliffe via Python-list wrote:
> It occurs to me that it might be useful if Python provided a function to 
> search for a file with a given name in various directories (much as the 
> import.import_lib function searches for a module in the directories in 
> sys.path).
> This function would perhaps be best placed in the os.path or os modules.
> To start the ball rolling, I offer this version:
consider: os.walk, glob.glob, Path.glob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.