don't go back too far after deleting folder

This commit is contained in:
atsushi nakagawa 2021-10-19 16:58:32 +09:00
parent 65c6a8f943
commit 4868557dfb

2
dist/index.js vendored
View File

@ -2314,7 +2314,7 @@ class FTPSyncProvider {
yield ensureDir(this.client, this.logger, this.timings, path.folders.join("/")); yield ensureDir(this.client, this.logger, this.timings, path.folders.join("/"));
} }
// navigate back to the root folder // navigate back to the root folder
yield this.upDir((_a = path.folders) === null || _a === void 0 ? void 0 : _a.length); yield this.upDir((_a = path.folders) === null || _a === void 0 ? void 0 : _a.length - 1);
this.logger.verbose(` completed`); this.logger.verbose(` completed`);
}); });
} }