canvas-data-cli
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -44,4 +44,4 @@ 'use strict'; | ||
if (splitResults.erroredFiles.length) { | ||
_this.logger.warn(errorFiles.length + ' files failed to download, please try running the sync again, if this error persists, open a ticket. No files will be cleaned up'); | ||
_this.logger.warn(errorFiles); | ||
_this.logger.warn(splitResults.erroredFiles.length + ' files failed to download, please try running the sync again, if this error persists, open a ticket. No files will be cleaned up'); | ||
_this.logger.warn(splitResults.erroredFiles); | ||
return cb(new Error('failed to download some files, try running sync again')); | ||
@@ -214,3 +214,7 @@ } | ||
glob('**/*', { cwd: this.saveLocation, nodir: true }, function (err, files) { | ||
var toRemove = files.filter(function (f) { | ||
if (err) return cb(err); | ||
// rewrite paths because glob returns inproper path seperators on windows (/ instead of \) | ||
var toRemove = files.map(function (f) { | ||
return f.split('/').join(path.sep); | ||
}).filter(function (f) { | ||
return f !== 'schema.json' && !byFilename[f]; | ||
@@ -217,0 +221,0 @@ }); |
{ | ||
"name": "canvas-data-cli", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "A CLI tool for interacting with the Canvas Data API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
60170
1338