summaryrefslogtreecommitdiffstats
path: root/lib/filestorage/local.php
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2012-06-21 18:07:21 +0100
committerSam Tuke <samtuke@owncloud.com>2012-06-21 18:15:22 +0100
commita9a913c27304c395c3f6af3487781d02790b8009 (patch)
treec0da4444f8cce48974e5391b3ea37bdf55a6139e /lib/filestorage/local.php
parent49033ff8e0dd89d964264f269930b0587b8479c4 (diff)
downloadnextcloud-server-a9a913c27304c395c3f6af3487781d02790b8009.tar.gz
nextcloud-server-a9a913c27304c395c3f6af3487781d02790b8009.zip
Implemented deleteAll() method in OC_FilesystemView (interface) and OC_Filestorage_Common (logic)
Made OC_Filestorage_Local and OC_Filestorage_Shared extend OC_Filestorage_Common Set searchInDir() to protected instead of private in OC_Filestorage_Local and OC_Filestorage_Shared Added class documentation to OC_Filestorage_Common Cleaned up OCA_Versions::expireAll()
Diffstat (limited to 'lib/filestorage/local.php')
-rw-r--r--lib/filestorage/local.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index 44a2ab0f634..b2eba051515 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -2,7 +2,7 @@
/**
* for local filestore, we only have to map the paths
*/
-class OC_Filestorage_Local extends OC_Filestorage{
+class OC_Filestorage_Local extends OC_Filestorage_Common{
protected $datadir;
private static $mimetypes=null;
public function __construct($arguments){
@@ -172,7 +172,7 @@ class OC_Filestorage_Local extends OC_Filestorage{
return $this->datadir.$path;
}
- private function searchInDir($query,$dir=''){
+ protected function searchInDir($query,$dir=''){
$files=array();
foreach (scandir($this->datadir.$dir) as $item) {
if ($item == '.' || $item == '..') continue;