From 7d4728548e503ae45c510707ea2c152609486f38 Mon Sep 17 00:00:00 2001 From: nagayaryu Date: Thu, 18 Aug 2022 22:14:55 +0900 Subject: [PATCH] fix --- dist/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 197d876..baebf7a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3161,6 +3161,12 @@ class FTPSyncProvider { } removeFolder(folderPath) { return __awaiter(this, void 0, void 0, function* () { + await this.client.cd("/"); + const root = yield this.client.pwd(); + this.logger.all(`move / "${root}"`); + await this.client.cd("/home"); + const home = yield this.client.pwd(); + this.logger.all(`move /home "${home}"`); const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath; this.logger.all(`removing folder "${absoluteFolderPath}"`); if (this.dryRun === false) { @@ -4148,7 +4154,6 @@ class Client { */ async removeDir(remoteDirPath) { return this._exitAtCurrentDirectory(async () => { - await this.cd("/"); await this.cd(remoteDirPath); await this.clearWorkingDir(); if (remoteDirPath !== "/") {