1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | class DIR { |
8: | public $arr = Array(); |
9: | public static function directoryExists($dirPath){ |
10: | $ret = false; |
11: | if(file_exists($dirPath) && is_dir($dirPath)){ |
12: | $ret = true; |
13: | } |
14: | return $ret; |
15: | } |
16: | public static function directoryCreate($dirPath){ |
17: | $ret = false; |
18: | if(!file_exists($dirPath) && mkdir($dirPath)){ |
19: | chmod($dirPath, 0775); |
20: | $ret = true; |
21: | } |
22: | return $ret; |
23: | } |
24: | public function directoriesCreate($dirPath){} |
25: | public function isIgnoreFolder($folder,$ignore_folder=array()) {} |
26: | public function isIgnoreFile($file,$ignore_file=array()) {} |
27: | public function isIgnoreFileExtention($extention,$ignore_file_extentions=array()) {} |
28: | public function isNotIgnoreFolder($folder,$lst_folder=array()) {} |
29: | public function directoryCopy($src,$dst,$fixdst="",$rev=false,$ignext=array(),$ignfiles=array(),$ignfolders=array()){} |
30: | public function directoryCopyChanges($src,$dst,$rev=false,$ignext=array(),$ignfiles=array(),$ignfolders=array()){} |
31: | public function directorySearch($path,$search,$rev=false,$ignext=array(),$ignfiles=array(),$ignfolders=array()) |
32: | {} |
33: | public function directoryCount($src) |
34: | {} |
35: | public function fileCount($src) |
36: | {} |
37: | public function RecursiveSearch($basepath,$subpath,$callback=null){} |
38: | public function getParentDirectory($path) {} |
39: | public function getParentDirectoryName($path) {} |
40: | public function directoryDelete($dirname) {} |
41: | } |
42: | |