Re: Searching for a file

2025-08-10 Thread Peter J. Holzer
On 2025-08-05 22:11:57 -0400, Grant Edwards via Python-list wrote: > On 2025-08-05, Michael Torrie via Python-list wrote: > > On 5/24/25 7:19 PM, Chris Angelico via Python-list wrote: > >> for dir in dirs: > >> try: open(dir + "/" + fn).close() > >> except FileNotFoundError: pass > >>

Re: Searching for a file

2025-08-10 Thread Peter J. Holzer
On 2025-08-04 19:22:23 -0600, Michael Torrie via Python-list wrote: > On 5/24/25 7:19 PM, Chris Angelico via Python-list wrote: > > for dir in dirs: > > try: open(dir + "/" + fn).close() > > except FileNotFoundError: pass > > else: break > > > > Is this really all that difficult? Not e