[Python-Dev] Find file given basename (original) (raw)

skip at pobox.com skip at pobox.com
Mon Apr 30 14:17:21 CEST 2007


Joshua> I was hoping you guys would consider creating function in
Joshua> os.path or otherwise that would find the full path of a file
Joshua> when given only it's base name and nothing else.I have been made
Joshua> to understand that this is not currently possible.If it is in
Joshua> any can you please inform me of it[i know this is not a
Joshua> tutorial] but please i need thiis badly if it's possible.Thank
Joshua> you

Joshua,

This topic should be discussed (at least until there is a concrete proposal) on the Usenet newgroup comp.lang.python (a.k.a. python-list at python.org). It would be helpful if you presented a concrete example. As stated though there is no unique file that matches a given basename. You might also want to check out the glob module to see if it addresses your needs.

Skip



More information about the Python-Dev mailing list