(self, roots='')
return list(_getFullPath()), list(_getFullName())
:param roots: should be absolute path
        :return: pdf path and pdf name
:param roots: should be absolute path
        :return: pdf path and pdf name
: param roots : should be absolute path : return : pdf path and pdf name
def getLocalPDF(self, roots=''):
        """
        :param roots: should be absolute path
        :return: pdf path and pdf name
        """
        if roots == 'none':
            return [], []

        def _getFullPath():
            for root, dirs, files in os.walk(roots, topdown=True):
                for name in files:
                    if '.' in name:
                        if name.split('.')[-1] == 'pdf':
                            full_path = os.path.join(root, name)
                            yield full_path.replace('\\', '/')

        def _getFullName():
            for root, dirs, files in os.walk(roots, topdown=True):
                for name in files:
                    if '.' in name:
                        if name.split('.')[-1] == 'pdf':
                            yield name.split('.')[0]

        return list(_getFullPath()), list(_getFullName())
def getLocalPDF ( self , roots = '' ) : if roots == 'none' : return [ ] , [ ] def _getFullPath ( ) : for root , dirs , files in os . walk ( roots , topdown = True ) : for name in files : if '.' in name : if name . split ( '.' ) [ - 1 ] == 'pdf' : full_path = os . path . join ( root , name ) yield full_path . replace ( '\\' , '/' ) def _getFullName ( ) : for root , dirs , files in os . walk ( roots , topdown = True ) : for name in files : if '.' in name : if name . split ( '.' ) [ - 1 ] == 'pdf' : yield name . split ( '.' ) [ 0 ] return list ( _getFullPath ( ) ) , list ( _getFullName ( ) )