mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-08-14 22:15:05 +00:00
fix
This commit is contained in:
parent
6a17ed23ac
commit
29b86b5fce
12
dist/index.js
vendored
12
dist/index.js
vendored
@ -3161,16 +3161,8 @@ class FTPSyncProvider {
|
|||||||
}
|
}
|
||||||
removeFolder(folderPath) {
|
removeFolder(folderPath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield this.client.cd("/");
|
const pwd = yield this.client.pwd();
|
||||||
const root = yield this.client.pwd();
|
const absoluteFolderPath = "/" + pwd + folderPath;
|
||||||
this.logger.all(`move / "${root}"`);
|
|
||||||
yield this.client.cd("/home");
|
|
||||||
const home = yield this.client.pwd();
|
|
||||||
this.logger.all(`move /home "${home}"`);
|
|
||||||
yield this.client.cd("/home/adw21/www/tools/xxx/aaa/bbbb/ccc")
|
|
||||||
const curr = yield this.client.pwd();
|
|
||||||
this.logger.all(`move /curr "${curr}"`);
|
|
||||||
const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath;
|
|
||||||
this.logger.all(`removing folder "${absoluteFolderPath}"`);
|
this.logger.all(`removing folder "${absoluteFolderPath}"`);
|
||||||
if (this.dryRun === false) {
|
if (this.dryRun === false) {
|
||||||
yield utilities_1.retryRequest(this.logger, () => __awaiter(this, void 0, void 0, function* () { return yield this.client.removeDir(absoluteFolderPath); }));
|
yield utilities_1.retryRequest(this.logger, () => __awaiter(this, void 0, void 0, function* () { return yield this.client.removeDir(absoluteFolderPath); }));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user