import sys
import json
import tangelo
import os
import time
@tangelo.restful
def get(filePath='./',subDir='scoreFiles/'):
    scoreDir = filePath + subDir
    lFiles = os.listdir(scoreDir)
    retDict = {}
    retDict["lFiles"] = lFiles
    retDict["nFiles"] = len(lFiles)
    return json.dumps(retDict)
import sys
import json
import tangelo
import os
import time
@tangelo.restful
def get(filePath='./',subDir='scoreFiles/'):
    scoreDir = filePath + subDir
    lFiles = sorted(os.listdir(scoreDir))
    retDict = {}
    retDict["lFiles"] = lFiles
    retDict["nFiles"] = len(lFiles)
    return json.dumps(retDict)
sort names so it doesn't look like hot garbage