aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.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/filesystemview.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/filesystemview.php')
-rw-r--r--lib/filesystemview.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index da622bcf920..99e08c50e75 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -252,6 +252,9 @@ class OC_FilesystemView {
public function unlink($path){
return $this->basicOperation('unlink',$path,array('delete'));
}
+ public function deleteAll( $directory, $empty = false ) {
+ return $this->basicOperation( 'deleteAll', $directory, array('delete'), $empty );
+ }
public function rename($path1,$path2){
$absolutePath1=$this->getAbsolutePath($path1);
$absolutePath2=$this->getAbsolutePath($path2);