From 06e41006a2c2dd7ccb4df836771dcd1985090ab3 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 3 Sep 2016 12:53:44 +0200 Subject: [PATCH] keep .empty --- src/trigger/clean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trigger/clean.js b/src/trigger/clean.js index 5c80ff2..bda75ef 100644 --- a/src/trigger/clean.js +++ b/src/trigger/clean.js @@ -19,7 +19,7 @@ module.exports = (bot, trigger, lib) => { items_dest.push(e.dest); }); dir_b.forEach((e,i,a) => { - if( items_dest.indexOf('./b/'+e) === -1 ) { + if( items_dest.indexOf('./b/'+e) === -1 && e != '.empty' ) { failed_dests.push(e); fs.unlink('./b/'+e); }