oputil.js fb scan improvement & fixes
* Start of --verbose for oputil.js in general (mostly placeholder at this point) * Fix --full-scan and rename to just --full
This commit is contained in:
@@ -209,7 +209,7 @@ function scanFileAreaForChanges(areaInfo, options, cb) {
|
||||
async.series(
|
||||
[
|
||||
function quickCheck(next) {
|
||||
if(options['full-scan']) {
|
||||
if(options['full']) {
|
||||
return next(null);
|
||||
}
|
||||
|
||||
@@ -229,6 +229,16 @@ function scanFileAreaForChanges(areaInfo, options, cb) {
|
||||
areaTag : areaInfo.areaTag,
|
||||
storageTag : storageLoc.storageTag
|
||||
},
|
||||
(stepInfo, next) => {
|
||||
if(argv.verbose) {
|
||||
if(stepInfo.error) {
|
||||
console.error(` error: ${stepInfo.error}`);
|
||||
} else {
|
||||
console.info(` processing: ${stepInfo.step}`);
|
||||
}
|
||||
}
|
||||
return next(null);
|
||||
},
|
||||
(err, fileEntry, dupeEntries) => {
|
||||
if(err) {
|
||||
console.info(`Error: ${err.message}`);
|
||||
@@ -477,7 +487,7 @@ function scanFileAreas() {
|
||||
}
|
||||
|
||||
options.descFile = argv['desc-file']; // --desc-file or --desc-file PATH
|
||||
options['full-scan'] = argv['-full-scan'];
|
||||
options['full'] = argv.full;
|
||||
|
||||
options.areaAndStorageInfo = getAreaAndStorage(argv._.slice(2));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user