def extractFolders(folders):
    """
     convert a string of folders to a list of tuples (db , schema, node)
    :param folders: a string containing folders db-schema-node seperated by ,
    :return:  a list of tuples (db , schema, node)
    """
    output = []
    folderList = folders.split('-')
    for folder in folderList:
        folderComponents = folder.split(',')
        output.append(
            (folderComponents[0], folderComponents[1], folderComponents[2]))
    return output