ftp-deploy icon indicating copy to clipboard operation
ftp-deploy copied to clipboard

Allows FTP servers on Linux to delete files starting with a dot.

Open UltraNamahage opened this issue 3 years ago • 4 comments

Fix #99.

Linux-based FTP servers often consider files starting with a dot to be hidden files. The "-al" option allows you to retrieve them. However, it is not included in RFC959.

This option should not work with ftp-srv on win, for example.

UltraNamahage avatar Dec 02 '21 04:12 UltraNamahage

What do you mean by should not work? What will happen on a windows server with your code?

simonh1000 avatar Dec 02 '21 08:12 simonh1000

@simonh1000 Thanks for looking. It outputs a lot of this stuff.

{
    "name": "ftp-srv",
    "hostname": "UltraNamahage",
    "pid": 37548,
    "id": "2f31cfc1-c0fe-4ad2-ad33-5058279990db",
    "ip": "127.0.0.1",
    "directive": "LIST",
    "level": 50,
    "err": {
        "message": "ENOENT: no such file or directory, stat 'D:\\Project\\ftp-deploy\\test\\remote\\-al '",
        "name": "Error",
        "stack": "Error: ENOENT: no such file or directory, stat 'D:\\Project\\ftp-deploy\\test\\remote\\-al '",
        "code": "ENOENT"
    },
    "msg": "ENOENT: no such file or directory, stat 'D:\\Project\\ftp-deploy\\test\\remote\\-al '",
    "time": "2021-12-02T10:26:57.176Z",
    "v": 0
}

UltraNamahage avatar Dec 02 '21 10:12 UltraNamahage

but that means your code will break some people's setups?

simonh1000 avatar Dec 02 '21 12:12 simonh1000

There should be no major problems. In the worst case, a slowdown in processing speed can be expected.

UltraNamahage avatar Dec 03 '21 00:12 UltraNamahage