示例#1
0
文件: zipfile.php 项目: rigidus/ea
 function add()
 {
     $args = func_get_args();
     foreach ($args as $v) {
         if (is_file($v)) {
             if (self::$last_dir) {
                 $name = self::$last_dir . '/' . basename($v);
             } else {
                 $name = basename($v);
             }
             self::_add($name, $v);
         } else {
             self::$result_dir = $v;
             $array = self::listDir($v);
             self::_recursivy_read($array);
         }
     }
 }