PHP Class Cml\Vendor\Ftp

Mostra file Open project: linhecheng/cmlphp

Public Methods

Method Description
changename ( string $oldname, string $newname ) : boolean FTP-更改ftp上的文件名称
close ( ) : boolean FTP-关闭链接
connect ( array $config ) : boolean FTP-ftp连接
delDir ( string $dir ) : boolean FTP-删除文件目录
delFile ( string $file ) : boolean FTP-删除文件
download ( string $local_file, string $ftp_file ) : boolean FTP-文件下载
fileSize ( string $file ) : boolean FTP-返回文件大小
ftpChmod ( string $file, integer $val = 511 ) : boolean FTP-改变文件权限值
makeDir ( string $path ) : boolean FTP-创建目录
mdtm ( string $file ) : boolean FTP-文件修改时间
nlist ( string $path = '/' ) : boolean FTP-FTP上的文件列表
upload ( string $local_file, string $ftp_file ) : boolean FTP-文件上传

Private Methods

Method Description
checkpath ( $path ) : string FTP-检测path

Method Details

changename() public method

FTP-更改ftp上的文件名称
public changename ( string $oldname, string $newname ) : boolean
$oldname string 旧文件
$newname string 新文件名称
return boolean

close() public method

FTP-关闭链接
public close ( ) : boolean
return boolean

connect() public method

FTP-ftp连接
public connect ( array $config ) : boolean
$config array 配置
return boolean

delDir() public method

FTP-删除文件目录
public delDir ( string $dir ) : boolean
$dir string 删除文件目录
return boolean

delFile() public method

FTP-删除文件
public delFile ( string $file ) : boolean
$file string 删除文件
return boolean

download() public method

FTP-文件下载
public download ( string $local_file, string $ftp_file ) : boolean
$local_file string 本地文件
$ftp_file string Ftp文件
return boolean

fileSize() public method

FTP-返回文件大小
public fileSize ( string $file ) : boolean
$file string 文件
return boolean

ftpChmod() public method

FTP-改变文件权限值
public ftpChmod ( string $file, integer $val = 511 ) : boolean
$file string 文件
$val integer
return boolean

makeDir() public method

FTP-创建目录
public makeDir ( string $path ) : boolean
$path string 路径地址
return boolean

mdtm() public method

FTP-文件修改时间
public mdtm ( string $file ) : boolean
$file string 文件
return boolean

nlist() public method

FTP-FTP上的文件列表
public nlist ( string $path = '/' ) : boolean
$path string 路径
return boolean

upload() public method

FTP-文件上传
public upload ( string $local_file, string $ftp_file ) : boolean
$local_file string 本地文件
$ftp_file string Ftp文件
return boolean