Skip to content

Commit 8811b92

Browse files
authored
v4.3.6 (#513)
1 parent 8e83cea commit 8811b92

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

dist/index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3626,7 +3626,7 @@ class FTPSyncProvider {
36263626
}
36273627
catch (e) {
36283628
// this error is common when a file was deleted on the server directly
3629-
if (e.code === types_1.ErrorCode.FileNotFoundOrNoAccess) {
3629+
if ((e === null || e === void 0 ? void 0 : e.code) === types_1.ErrorCode.FileNotFoundOrNoAccess) {
36303630
this.logger.standard("File not found or you don't have access to the file - skipping...");
36313631
}
36323632
else {
@@ -3643,7 +3643,17 @@ class FTPSyncProvider {
36433643
const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath;
36443644
this.logger.all(`removing folder "${absoluteFolderPath}"`);
36453645
if (this.dryRun === false) {
3646-
yield (0, utilities_1.retryRequest)(this.logger, () => __awaiter(this, void 0, void 0, function* () { return yield this.client.removeDir(absoluteFolderPath); }));
3646+
try {
3647+
yield (0, utilities_1.retryRequest)(this.logger, () => __awaiter(this, void 0, void 0, function* () { return yield this.client.removeDir(absoluteFolderPath); }));
3648+
}
3649+
catch (e) {
3650+
if ((e === null || e === void 0 ? void 0 : e.code) === types_1.ErrorCode.FileNotFoundOrNoAccess) {
3651+
this.logger.standard("Directory not found or you don't have access to the file - skipping...");
3652+
}
3653+
else {
3654+
throw e;
3655+
}
3656+
}
36473657
}
36483658
this.logger.verbose(` completed`);
36493659
});

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"license": "MIT",
2424
"dependencies": {
2525
"@actions/core": "^1.9.1",
26-
"@samkirkland/ftp-deploy": "^1.2.4",
26+
"@samkirkland/ftp-deploy": "^1.2.5",
2727
"@types/jest": "^29.4.1",
2828
"jest": "^29.5.0",
2929
"ts-jest": "^29.0.5",

0 commit comments

Comments
 (0)