Comparing version 0.7.0 to 0.7.1
@@ -266,19 +266,28 @@ 'use strict'; | ||
const readRoot = setInterval(_asyncToGenerator(function* () { | ||
const paths = yield _this9.readdir('/'); | ||
const readRoot = (() => { | ||
var _ref2 = _asyncToGenerator(function* () { | ||
const paths = yield _this9.readdir('/'); | ||
if (paths.length !== 0) { | ||
clearInterval(readRoot); | ||
clearTimeout(abort); | ||
if (paths.length !== 0) { | ||
clearTimeout(abort); | ||
for (const path of paths) { | ||
yield _this9.downloadPath(path, listOnly); | ||
for (const path of paths) { | ||
yield _this9.downloadPath(path, listOnly); | ||
} | ||
if (_this9.program.dryRun || !listOnly && _this9.files > 30 || _this9.files === 0) { | ||
_this9.printTotal(); | ||
} | ||
resolve(); | ||
} else { | ||
setTimeout(readRoot, 300); | ||
} | ||
}); | ||
if (_this9.program.dryRun || !listOnly && _this9.files > 30 || _this9.files === 0) { | ||
_this9.printTotal(); | ||
} | ||
resolve(); | ||
} | ||
}), 300); | ||
return function readRoot() { | ||
return _ref2.apply(this, arguments); | ||
}; | ||
})(); | ||
readRoot(); | ||
}); | ||
@@ -285,0 +294,0 @@ } |
{ | ||
"name": "dat-cp", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Dat Copy - remote file copy, powered by the dat protocol", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38559
868