1.1.1 • Published 7 years ago

lyftp v1.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

lyftp

ftp文件上传

使用

{
    "host": "127.0.0.1",
    "port": 8009,
    "user": "xxx",
    "password": "password",
    "remotePath": "webApp/ftptest/",
    "upload": {
        "default": ["not/"],
        "chat": ["wptFtp/not/test/a.txt", "wptFtp/not/test2/"],
        "lys": ["lys/bin"]
    }
}

在工程文件夹内添加一个.ftprc的json配置文件,配置如上,说明如下

key说明
host服务器地址
port端口
user用户名
password密码
remotePath服务器文件夹
upload上传文件配置,如上lyftp chat 会上传指定的两个文件/文件夹

上传

被上传的文件/文件夹路径,需要是相对.ftprc的相对路径或者是一个绝对路径

命令行上传

lyftp chat

命令行指定文件/文件夹

lyftp --files wptFtp/not/test/a.txt wptFtp/not/test2/
1.1.1

7 years ago

1.1.0

7 years ago

0.0.11

7 years ago

1.0.10

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago