def __init__(self, path, title=None):
        """Initialize instance's variables from information in directory."""
        self.__title = title
        self.__files = []
        for name in os.listdir(path):
            if os.path.splitext(name)[1].lower() == '.txt':
                path_name = os.path.join(path, name)
                if os.path.isfile(path_name):
                    self.__files.append(_VerseFile(path_name))
        self.__files.sort(key=lambda file: file.title)
Initialize instance's variables from information in directory.
recipes/Python/577049_Bible_Verse_Quiz__librarypy/recipe-577049.py