<s> import os <EOL> import fnmatch <EOL> def finder ( path , ext ) : <EOL> """<STR_LIT>""" <EOL> l = [ ] <EOL> if not ext . startswith ( '<STR_LIT>' ) : <EOL> ext = '<STR_LIT>' . format ( ext ) <EOL> for path , dirs , files in os . walk ( os . path . abspath ( path ) ) : <EOL> for f in fnmatch . filter ( files , ext ) : <EOL> l . append ( os . path . join ( path , f ) ) <EOL> return l </s>
