diff --git a/dist/index.js b/dist/index.js index dfd7327..a30777b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2314,7 +2314,7 @@ class FTPSyncProvider { yield ensureDir(this.client, this.logger, this.timings, path.folders.join("/")); } // 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`); }); }