From a9a913c27304c395c3f6af3487781d02790b8009 Mon Sep 17 00:00:00 2001 From: Sam Tuke Date: Thu, 21 Jun 2012 18:07:21 +0100 Subject: 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() --- lib/filesystemview.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/filesystemview.php') 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); -- cgit v1.2.3