Method |
Description |
|
__construct ( string $path, $pattern = '*' ) |
+----------------------------------------------------------
架构函数
+----------------------------------------------------------
+---------------------------------------------------------- |
|
copyDir ( $source, $destination ) |
+----------------------------------------------------------
复制目录
+----------------------------------------------------------
+----------------------------------------------------------
+---------------------------------------------------------- |
|
del ( $directory ) |
+----------------------------------------------------------
删除目录下面的所有文件,但不删除目录
+----------------------------------------------------------
+----------------------------------------------------------
+---------------------------------------------------------- |
|
delDir ( $directory, $subdir = true ) |
+----------------------------------------------------------
删除目录(包括下面的文件)
+----------------------------------------------------------
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getATime ( ) : integer |
+----------------------------------------------------------
文件上次访问时间
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getCTime ( ) : integer |
+----------------------------------------------------------
取得文件的 inode 修改时间
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getChildren ( ) : DirectoryIterator |
+----------------------------------------------------------
遍历子目录文件信息
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getFilename ( ) : string |
+----------------------------------------------------------
取得文件名
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getGroup ( ) : integer |
+----------------------------------------------------------
取得文件的组
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getInode ( ) : integer |
+----------------------------------------------------------
取得文件的 inode
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getIterator ( ) : string |
+----------------------------------------------------------
获取foreach的遍历方式
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getList ( $directory ) |
+----------------------------------------------------------
取得目录中的结构信息
+----------------------------------------------------------
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getMTime ( ) : integer |
+----------------------------------------------------------
取得文件的上次修改时间
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getOwner ( ) : string |
+----------------------------------------------------------
取得文件的所有者
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getPath ( ) : string |
+----------------------------------------------------------
取得文件路径,不包括文件名
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getPathname ( ) : string |
+----------------------------------------------------------
取得文件的完整路径,包括文件名
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getPerms ( ) : integer |
+----------------------------------------------------------
取得文件的权限
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getSize ( ) : integer |
+----------------------------------------------------------
取得文件的大小
+----------------------------------------------------------
+---------------------------------------------------------- |
|
getType ( ) : string |
+----------------------------------------------------------
取得文件类型
+----------------------------------------------------------
+---------------------------------------------------------- |
|
isDir ( ) : boolen |
+----------------------------------------------------------
是否为目录
+----------------------------------------------------------
+---------------------------------------------------------- |
|
isEmpty ( $directory ) |
+----------------------------------------------------------
判断目录是否为空
+----------------------------------------------------------
+----------------------------------------------------------
+---------------------------------------------------------- |
|
isExecutable ( ) : boolen |
+----------------------------------------------------------
文件是否可以执行
+----------------------------------------------------------
+---------------------------------------------------------- |
|
isFile ( ) : boolen |
+----------------------------------------------------------
是否为文件
+----------------------------------------------------------
+---------------------------------------------------------- |
|
isLink ( ) : boolen |
+----------------------------------------------------------
文件是否为一个符号连接
+----------------------------------------------------------
+---------------------------------------------------------- |
|
isReadable ( ) : boolen |
+----------------------------------------------------------
文件是否可读
+----------------------------------------------------------
+---------------------------------------------------------- |
|
listFile ( mixed $pathname, $pattern = '*' ) |
+----------------------------------------------------------
取得目录下面的文件信息
+----------------------------------------------------------
+---------------------------------------------------------- |
|
toArray ( ) |
返回目录的数组信息 |
|