def register_directory(self, dirpath, **kwargs):
        """
        Registers all of the files in the the directory path
        """

        kwargs['file_extensions'] = kwargs.get("file_extensions",
                                               self.rdf_formats)
        files = list_files(file_directory=dirpath, **kwargs)
        for fileinfo in files:
            self.register_rml(fileinfo[-1], **kwargs)
def register_directory ( self , dirpath , ** kwargs ) : kwargs [ 'file_extensions' ] = kwargs . get ( "file_extensions" , self . rdf_formats ) files = list_files ( file_directory = dirpath , ** kwargs ) for fileinfo in files : self . register_rml ( fileinfo [ - 1 ] , ** kwargs )
Registers all of the files in the the directory path