mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
make local filestorage comply with test cases
This commit is contained in:
parent
31ea39360c
commit
d6aa5ac7e8
1 changed files with 5 additions and 8 deletions
|
|
@ -12,14 +12,10 @@ class OC_Filestorage_Local extends OC_Filestorage{
|
|||
}
|
||||
}
|
||||
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);
|
||||
|
|
@ -80,8 +76,7 @@ class OC_Filestorage_Local extends OC_Filestorage{
|
|||
}
|
||||
}
|
||||
public function unlink($path){
|
||||
$return=$this->delTree($path);
|
||||
return $return;
|
||||
return $this->delTree($path);
|
||||
}
|
||||
public function rename($path1,$path2){
|
||||
if(! $this->file_exists($path1)){
|
||||
|
|
@ -168,6 +163,8 @@ class OC_Filestorage_Local extends OC_Filestorage{
|
|||
$mimeType=(isset(self::$mimetypes[$extention]))?self::$mimetypes[$extention]:'application/octet-stream';
|
||||
}
|
||||
return $mimeType;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue