find function

Uwe Mayer merkosh at hadiko.de
Sun Jan 25 17:25:39 EST 2004


Hi,

is there for python a find() function, like the perl module Find or the
command line tool find?

All I found was os.listdir(<path>), but that does return all files in a
folder. I'd like to have i.e. regex or shell-like file selections, as in:

$ find -name \*.pyc -maxdepth 1

Thanks
Ciao
Uwe
-- 
        



More information about the Python-list mailing list