def get_all_files(self, path, extensions=None):
        files = []
        for dirname, dirnames, filenames in os.walk(path):
            # print path to all filenames.
            for filename in filenames:
                if(
                    extensions is None or
                    filename.lower().endswith(extensions)
                ):
                    files.append(os.path.join(dirname, filename))
        return files
Recursively get all files which match a path and extension.
dataset/ETHPy150Open jmathai/elodie/elodie/filesystem.py/FileSystem.get_all_files