Module ftp

模块功能:FTP客户端

Info:

  • Copyright: OpenLuat.com
  • Release: 2020.12.08
  • License: MIT
  • Author: Dozingfiretruck

Functions

request (ftp_mode, host, username, password, transmission_mode, remote_file, local_file, timeout) FTP客户端


Functions

request (ftp_mode, host, username, password, transmission_mode, remote_file, local_file, timeout)
FTP客户端

Parameters:

  • ftp_mode string
    string类型,FTP模式"PASV" or "PORT"  默认PASV:被动模式,PORT:主动模式 (暂时仅支持被动模式)
  • host string
    string类型,ip地址
  • username string
    string类型,用户名
  • password string
    string类型,密码
  • transmission_mode string
    string类型,传输模式"RETR" or "STOR"  RETR:下载模式,STOR:上传模式
  • remote_file string
    string类型,远程文件名
  • local_file string
    string类型,本地文件名
  • timeout number
    number类型,超时时间

Returns:

  • number,string,正常返回response_code, response_header, response_body
generated by LDoc 1.4.6 Last updated 2020-12-22 10:37:08