Skip to content

Deleting folder throws an error #43

Description

@LucaBlackDragon

Bug Description
When deleting folders, the library throws a FTPError No such file or directory.
This issue might be caused by the initial / present in folder entries, but not in file entries, as far as I can tell from error logs:

...  
📄 Delete: _next/static/chunks/main-4008b7bc3b992c03.js  ← no initial / here    
📁 Delete: _next/data/37sYNwt2oKohzL5dgd1TZ              ← no initial / here too
...
removing "_next/static/chunks/main-4008b7bc3b992c03.js"   ← still no initial /, this works
removing folder "/_next/data/37sYNwt2oKohzL5dgd1TZ"       ← a / has appeared, and this throws

----------------------------------------------------------------
--------------  🔥🔥🔥 an error occurred  🔥🔥🔥  --------------
----------------------------------------------------------------

----------------------------------------------------------------
----------------------  full error below  ----------------------
----------------------------------------------------------------

FTPError: 550 /_next/data/37sYNwt2oKohzL5dgd1TZ: No such file or directory
    at FTPContext._onControlSocketData (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5[26](https://github.com/<...omissis...>)3:39)
    at TLSSocket.<anonymous> (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.5/dist/index.js:5107:44)
    at TLSSocket.emit (node:events:519:[28](https://github.com/<...omissis...>))
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23) {
  code: 550
}

I have also opened a linked issue on SamKirkland/FTP-Deploy-Action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions