diff options
author | Klaas Freitag <freitag@owncloud.com> | 2012-02-14 10:01:20 +0100 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2012-02-14 10:01:20 +0100 |
commit | 064f87680b15b64703f972e9a654e402de197f8f (patch) | |
tree | 3fe49af4e8aa3a5198a8e881506603188ef6141c /lib/filestorage/local.php | |
parent | 60a03580fff65d969faea8e5788b278ed8b15481 (diff) | |
parent | f7161bb48b6bb71b04f4167f8c4cfb4096824ed8 (diff) | |
download | nextcloud-server-064f87680b15b64703f972e9a654e402de197f8f.tar.gz nextcloud-server-064f87680b15b64703f972e9a654e402de197f8f.zip |
Merge branch 'master' of gitorious.org:owncloud/owncloud
Diffstat (limited to 'lib/filestorage/local.php')
-rw-r--r-- | lib/filestorage/local.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index 35db244e4d6..dcb516a3afb 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); @@ -83,8 +79,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)){ @@ -171,6 +166,8 @@ class OC_Filestorage_Local extends OC_Filestorage{ $mimeType=(isset(self::$mimetypes[$extention]))?self::$mimetypes[$extention]:'application/octet-stream'; } return $mimeType; + }else{ + return false; } } |