phpDocumentor utility
[ class tree: utility ] [ index: utility ] [ all elements ]

Class: WindFolder

Source Location: /utility/WindFolder.php

Class WindFolder

Class Overview

文件夹工具类

Located in /utility/WindFolder.php [line 12]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Id: WindFolder.php 3347 2012-02-08 02:54:48Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Constant Summary

[ Top ]
Method Summary
static boolean   clear()   删除指定目录下的文件
static void   clearRecur()   递归的删除目录
static array   getInfo()   取得目录信息
static boolean   isDir()   判断输入是否为目录
static boolean   mk()   创建目录
static boolean   mkRecur()   递归的创建目录
static array   read()   获取文件列表
static boolean   rm()   删除目录

[ Top ]
Methods
static method clear  [line 58]

  static boolean clear( string $dir, [boolean $delFolder = false]  )

删除指定目录下的文件

Parameters:
string   $dir:  目录
boolean   $delFolder:  是否删除目录

API Tags:
Access:  public


[ Top ]
static method clearRecur  [line 77]

  static void clearRecur( string $dir, [Boolean $delFolder = false]  )

递归的删除目录

Parameters:
string   $dir:  目录
Boolean   $delFolder:  是否删除目录

API Tags:
Access:  public


[ Top ]
static method getInfo  [line 109]

  static array getInfo( string $dir  )

取得目录信息

Parameters:
string   $dir:  目录路径

API Tags:
Access:  public


[ Top ]
static method isDir  [line 99]

  static boolean isDir( string $dir  )

判断输入是否为目录

Parameters:
string   $dir: 

API Tags:
Access:  public


[ Top ]
static method mk  [line 120]

  static boolean mk( string $path, [int $permissions = 0777]  )

创建目录

Parameters:
string   $path:  目录路径
int   $permissions:  权限

API Tags:
Access:  public


[ Top ]
static method mkRecur  [line 131]

  static boolean mkRecur( string $path, [int $permissions = 0777]  )

递归的创建目录

Parameters:
string   $path:  目录路径
int   $permissions:  权限

API Tags:
Access:  public


[ Top ]
static method read  [line 24]

  static array read( string $dir, [boolean $mode = self::READ_ALL]  )

获取文件列表

Parameters:
string   $dir: 
boolean   $mode:  只读取文件列表,不包含文件夹

API Tags:
Access:  public


[ Top ]
static method rm  [line 47]

  static boolean rm( string $dir, [boolean $f = false]  )

删除目录

Parameters:
string   $dir: 
boolean   $f:  是否强制删除

API Tags:
Access:  public


[ Top ]
Constants
READ_ALL = '0' [line 13]

[ Top ]
READ_DIR = '2' [line 15]

[ Top ]
READ_FILE = '1' [line 14]

[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:33 +0800 by phpDocumentor 1.4.4