v3 async until
This commit is contained in:
parent
d728ddea4c
commit
1ec721212d
|
@ -205,7 +205,7 @@ exports.getModule = class TransferFileModule extends MenuModule {
|
||||||
let tryDstPath;
|
let tryDstPath;
|
||||||
|
|
||||||
async.until(
|
async.until(
|
||||||
() => movedOk, // until moved OK
|
(callback) => callback(null, movedOk), // until moved OK
|
||||||
(cb) => {
|
(cb) => {
|
||||||
if(0 === renameIndex) {
|
if(0 === renameIndex) {
|
||||||
// try originally supplied path first
|
// try originally supplied path first
|
||||||
|
|
|
@ -38,7 +38,7 @@ function moveOrCopyFileWithCollisionHandling(src, dst, operation, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async.until(
|
async.until(
|
||||||
() => opOk, // until moved OK
|
(callback) => callback(null, opOk), // until moved OK
|
||||||
(cb) => {
|
(cb) => {
|
||||||
if(0 === renameIndex) {
|
if(0 === renameIndex) {
|
||||||
// try originally supplied path first
|
// try originally supplied path first
|
||||||
|
|
Loading…
Reference in New Issue