def listfolderpath(p):
    """
    generator of list folder in the path.
    folders only
    """
    for entry in scandir.scandir(p):
        if entry.is_dir():
            yield entry.path
def listfolderpath(p):
    
    for entry in scandir.scandir(p):
        if entry.is_dir():
            yield entry.path
def listfolderpath ( p ) : for entry in scandir . scandir ( p ) : if entry . is_dir ( ) : yield entry . path
generator of list folder in the path.
    folders only
generator of list folder in the path . folders only