diff --git a/apps/files_archive/lib/storage.php b/apps/files_archive/lib/storage.php index 86761663611cf5c4462f12f72df28d673a4df462..add00ed8d8eb2e3b472bfc7d5b5e4a3436d9611e 100644 --- a/apps/files_archive/lib/storage.php +++ b/apps/files_archive/lib/storage.php @@ -111,6 +111,19 @@ class OC_Filestorage_Archive extends OC_Filestorage_Common{ return false;//not supported } } + private function toTmpFile($path){ + $tmpFile=OC_Helper::tmpFile($extension); + $this->archive->extractFile($path,$tmpFile); + return $tmpFile; + } + public function file_put_contents($path,$data) { + $path=$this->stripPath($path); + return $this->archive->addFile($path,$data); + } + public function file_get_contents($path) { + $path=$this->stripPath($path); + return $this->archive->getFile($path); + } /** * automount paths from file hooks