

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

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/setuptools-0.6c11/setuptools/__init__.py findall/original