def handle(): """ Return a JSON array of script filenames Scripts are located via the script.directory configuration parameter. """ with Sessions.current() as session: if ScriptRoot is None: files = [] else: files = util.listAllFiles(ScriptRoot, '.py') return json.dumps(sorted(files))
def handle(): """Return a JSON array of filenames in the SEQRoot directory **Example Response**: .. sourcecode: json [ sequenceOne.txt, sequenceTwo.txt ] """ if SEQRoot is None: files = [] else: files = util.listAllFiles(SEQRoot, '.txt') return json.dumps(sorted(files))