mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-12-16 14:39:46 +00:00
v4.3.6 (#513)
This commit is contained in:
parent
8e83cea867
commit
8811b92347
12
dist/index.js
vendored
12
dist/index.js
vendored
@ -3626,7 +3626,7 @@ class FTPSyncProvider {
|
||||
}
|
||||
catch (e) {
|
||||
// this error is common when a file was deleted on the server directly
|
||||
if (e.code === types_1.ErrorCode.FileNotFoundOrNoAccess) {
|
||||
if ((e === null || e === void 0 ? void 0 : e.code) === types_1.ErrorCode.FileNotFoundOrNoAccess) {
|
||||
this.logger.standard("File not found or you don't have access to the file - skipping...");
|
||||
}
|
||||
else {
|
||||
@ -3643,8 +3643,18 @@ class FTPSyncProvider {
|
||||
const absoluteFolderPath = "/" + (this.serverPath.startsWith("./") ? this.serverPath.replace("./", "") : this.serverPath) + folderPath;
|
||||
this.logger.all(`removing folder "${absoluteFolderPath}"`);
|
||||
if (this.dryRun === false) {
|
||||
try {
|
||||
yield (0, utilities_1.retryRequest)(this.logger, () => __awaiter(this, void 0, void 0, function* () { return yield this.client.removeDir(absoluteFolderPath); }));
|
||||
}
|
||||
catch (e) {
|
||||
if ((e === null || e === void 0 ? void 0 : e.code) === types_1.ErrorCode.FileNotFoundOrNoAccess) {
|
||||
this.logger.standard("Directory not found or you don't have access to the file - skipping...");
|
||||
}
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.logger.verbose(` completed`);
|
||||
});
|
||||
}
|
||||
|
||||
9
package-lock.json
generated
9
package-lock.json
generated
@ -10,7 +10,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.9.1",
|
||||
"@samkirkland/ftp-deploy": "^1.2.4",
|
||||
"@samkirkland/ftp-deploy": "^1.2.5",
|
||||
"@types/jest": "^29.4.1",
|
||||
"jest": "^29.5.0",
|
||||
"ts-jest": "^29.0.5",
|
||||
@ -1097,9 +1097,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@samkirkland/ftp-deploy": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@samkirkland/ftp-deploy/-/ftp-deploy-1.2.4.tgz",
|
||||
"integrity": "sha512-MF5BoP1mQS3HBdx2pTMX/sIxSt9S4IgdL6ttrcGpUWC9U/IIPcUnyVEQiiBQJePLXpHI93dT9b8VDoS+cUknNg==",
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/@samkirkland/ftp-deploy/-/ftp-deploy-1.2.5.tgz",
|
||||
"integrity": "sha512-UZJKpb46FOGLmjgLiQDmzU/3zZUP1ckCaJG6xaHQ1igAGydLm6ctYmQO9gupJYs3HzEYkLXzU5AZGOb4RuHTjw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"basic-ftp": "^5.0.5",
|
||||
"lodash": "^4.17.21",
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.9.1",
|
||||
"@samkirkland/ftp-deploy": "^1.2.4",
|
||||
"@samkirkland/ftp-deploy": "^1.2.5",
|
||||
"@types/jest": "^29.4.1",
|
||||
"jest": "^29.5.0",
|
||||
"ts-jest": "^29.0.5",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user