+ return (sorted.length > 0) ? sorted[0].file : ''
+}
+
+async function getFiles () {
+ if (options.files) return options.files
+
+ const logFiles = await readdir(CONFIG.STORAGE.LOG_DIR)
+
+ const filename = await getNewestFile(logFiles, CONFIG.STORAGE.LOG_DIR)
+ return [ join(CONFIG.STORAGE.LOG_DIR, filename) ]