From d273bc6c0da908f7d70d091e59044e3b4a8aabc4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 19 Jun 2018 09:36:14 +0200 Subject: stub in results --- app/relay/runner.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'app/relay/runner.js') diff --git a/app/relay/runner.js b/app/relay/runner.js index 531bf12..54f5a94 100644 --- a/app/relay/runner.js +++ b/app/relay/runner.js @@ -140,6 +140,12 @@ export function run_system_command(cmd, cb) { case 'du': disk_usage(cmd, cb) break + case 'list_results': + list_results(cmd, cb) + break + case 'dir_to_video': + dir_to_video(cmd, cb) + break default: cb({ error: 'no such command' }) break @@ -178,6 +184,22 @@ export function list_directory(opt, cb) { }) } +export function list_results(opt, cb) { + // list the contents of the results directory for the module + // filter out non-directories + // for each directory + // list it and count the files and sum their sizes and print the first filename and `identify` it... + cb([]) +} +export function dir_to_video(opt, db) { + // input: the path (in results/) you want as a video + // output: the path (in renders/) that contains the video + // run the dir to video script with CWD as the directory and first input as ../renders plus the directory name + // list the file in renders... + cb([]) +} + + export function disk_usage(opt, cb) { if (!opt.module || ! modules[opt.module]) { cb([]) -- cgit v1.2.3-70-g09d2