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
0fbaa12f37
commit
4a41131a6b
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -3161,10 +3161,9 @@ class FTPSyncProvider {
|
|||||||
}
|
}
|
||||||
removeFolder(folderPath) {
|
removeFolder(folderPath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
// const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath;
|
const path = this.getFileBreadcrumbs(folderPath + "/");
|
||||||
const absoluteFolderPath = "/" + folderPath;
|
const absoluteFolderPath = path.folders.join("/")
|
||||||
const current = yield this.client.pwd();
|
this.logger.all(`removing folder "${absoluteFolderPath}"`);
|
||||||
this.logger.all(`removing folder "${absoluteFolderPath} ${current}"`);
|
|
||||||
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