-
Notifications
You must be signed in to change notification settings - Fork 412
Open
Description
Description
When the tool is trying to delete a file that does not exists on the server, we get the following error in the CI.
FTPError: 550 /my-folder/my-file: No such file or directory
at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5263:39)
at Socket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5107:44)
at Socket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at TCP.onStreamRead (node:internal/stream_base_commons:191:23) {
code: 550
}
Proposition
When the file are not found, remove his content from the .ftp-deploy-sync-state.json
file.
Then, it could :
- Crache like it did : Faster to implement, user will have to rerun the ci (which he will either way)
- Continue silently. : _Cleaner IMO, just add a warning that this have been done with a massage that explain that following file have been removed on the server
Metadata
Metadata
Assignees
Labels
No labels