From 4a41131a6b3ae9f2781ff64056ffe540176c571c Mon Sep 17 00:00:00 2001 From: nagayaryu Date: Thu, 18 Aug 2022 22:07:08 +0900 Subject: [PATCH] fix --- dist/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5616c4c..221d69d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3161,10 +3161,9 @@ class FTPSyncProvider { } removeFolder(folderPath) { return __awaiter(this, void 0, void 0, function* () { - // const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath; - const absoluteFolderPath = "/" + folderPath; - const current = yield this.client.pwd(); - this.logger.all(`removing folder "${absoluteFolderPath} ${current}"`); + const path = this.getFileBreadcrumbs(folderPath + "/"); + const absoluteFolderPath = path.folders.join("/") + 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); })); }