From 10afe3e68857404dd6ae60474df7aa54c73a4fca Mon Sep 17 00:00:00 2001 From: nagayaryu Date: Thu, 18 Aug 2022 22:12:01 +0900 Subject: [PATCH] fix --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 221d69d..197d876 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3161,8 +3161,7 @@ class FTPSyncProvider { } removeFolder(folderPath) { return __awaiter(this, void 0, void 0, function* () { - const path = this.getFileBreadcrumbs(folderPath + "/"); - const absoluteFolderPath = path.folders.join("/") + const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath; this.logger.all(`removing folder "${absoluteFolderPath}"`); if (this.dryRun === false) { yield utilities_1.retryRequest(this.logger, () => __awaiter(this, void 0, void 0, function* () { return yield this.client.removeDir(absoluteFolderPath); })); @@ -4149,6 +4148,7 @@ class Client { */ async removeDir(remoteDirPath) { return this._exitAtCurrentDirectory(async () => { + await this.cd("/"); await this.cd(remoteDirPath); await this.clearWorkingDir(); if (remoteDirPath !== "/") {