}
}
public function mkdir($path){
- if($return=mkdir($this->datadir.$path)){
- }
- return $return;
+ return @mkdir($this->datadir.$path);
}
public function rmdir($path){
- if($return=rmdir($this->datadir.$path)){
- }
- return $return;
+ return @rmdir($this->datadir.$path);
}
public function opendir($path){
return opendir($this->datadir.$path);
}
}
public function unlink($path){
- $return=$this->delTree($path);
- return $return;
+ return $this->delTree($path);
}
public function rename($path1,$path2){
if(! $this->file_exists($path1)){
$mimeType=(isset(self::$mimetypes[$extention]))?self::$mimetypes[$extention]:'application/octet-stream';
}
return $mimeType;
+ }else{
+ return false;
}
}