Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-13 13:27:00 +0400
committerThomas Tanghus <thomas@tanghus.net>2012-02-14 04:00:41 +0400
commit3c52ac7af3a5e03e8a740f195ca020cf67871c35 (patch)
tree3dd6aedca278e6c20074c3af520b489f314b2e14 /lib/filestorage
parentbfa18fde19427179aa1ec5132810b429dee33cf7 (diff)
make local filestorage comply with test cases
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index 292d2a84e7d..2e66943cad2 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -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;
}
}