keep .empty

This commit is contained in:
Flummi 2016-09-03 12:53:44 +02:00
parent a2d46e9d3d
commit 06e41006a2

View File

@ -19,7 +19,7 @@ module.exports = (bot, trigger, lib) => {
items_dest.push(e.dest); items_dest.push(e.dest);
}); });
dir_b.forEach((e,i,a) => { 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); failed_dests.push(e);
fs.unlink('./b/'+e); fs.unlink('./b/'+e);
} }