def findall(dir = os.curdir):
all_files = []<EOL>for base, dirs, files in os.walk(dir, followlinks=True):<EOL><INDENT>if base==os.curdir or base.startswith(os.curdir+os.sep):<EOL><INDENT>base = base[<NUM_LIT:2>:]<EOL><DEDENT>if base:<EOL><INDENT>files = [os.path.join(base, f) for f in files]<EOL><DEDENT>all_files.extend(filter(os.path.isfile, files))<EOL><DEDENT>return all_files<EOL>
Find all files under 'dir' and return the list of full filenames
    (relative to 'dir').