Class SaeFile
Namespace: application\core\engines\sae
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/engines/sae/SaeFile.php
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/engines/sae/SaeFile.php
Methods summary
public
|
#
__construct( string $domain = 'data', string $ak = '', string $sk = '' )
构造函数,初始化 domain 以及 storage 对象 |
public static
|
|
public
array
|
#
getList( string $dirName, boolean $showAll = false, boolean $showDir = false )
获取文件列表 默认会将文件做筛选,不显示子目录的文件 .txt 表示搜索 所有*.txt / 表示搜索 所有目录 (假设以/结尾则是目录) aaa/ 表示搜索 aaa目录下的文件 |
public
array
|
|
public
array
|
|
public
boolean
|
|
public
type
|
#
getFileInfo( string $fileName )
获得文件资料 目前支持的文件属性 - expires: 浏览器缓存超时,功能与Apache的Expires配置相同 - encoding: 设置通过Web直接访问文件时,Header中的Content-Encoding。 - type: 设置通过Web直接访问文件时,Header中的Content-Type。 |
public
boolean
|
|
public
boolean
|
|
public
type
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
type
|
|
public
type
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
type
|
|
public
type
|
|
public
string
|
|
public
integer
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
integer
|
|
public
string
|
|
public
|
Properties summary
protected
array
|
$filesInfo
|
#
array()
|