From 0b583e5e1dcc76a0cf9bb30ba969c9b2b59ab733 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 28 Oct 2020 17:43:21 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- Viewer/features/filesystem.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Viewer/features/filesystem.js b/Viewer/features/filesystem.js index 7ab1a710..c540e759 100755 --- a/Viewer/features/filesystem.js +++ b/Viewer/features/filesystem.js @@ -2010,21 +2010,18 @@ var FileSystemWriterActions = actions.Actions({ // XXX if(path instanceof Array){ console.error('saving to merged indexes not yet supported...') - return - } + return } // XXX if(path == null && this.location.load != 'loadIndex'){ - path = this.location.path - } + path = this.location.path } // resolve relative paths... if(/^(\.\.?[\\\/]|[^\\\/])/.test(path) // and skip windows drives... && !/^[a-z]:[\\\/]/i.test(path)){ // XXX do we need to normalize??? - path = this.location.path +'/'+ path - } + path = this.location.path +'/'+ path } // XXX get real base path... //path = path || this.location.path +'/'+ this.config['index-dir'] @@ -2051,16 +2048,13 @@ var FileSystemWriterActions = actions.Actions({ && (process.platform == 'win32' || process.platform == 'win64') && child_process - .spawn('attrib', ['+h', full_path]) - }) + .spawn('attrib', ['+h', full_path]) }) .then(function(){ location.load = 'loadIndex' location.from = index.date //return location - return index - }) - }], + return index }) }], // XXX add name conflict resolution strategies (pattern)... // ...use the same strategy as for .exportDirs(..)