summaryrefslogtreecommitdiffstats
path: root/apps/files_archive/lib/zip.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_archive/lib/zip.php')
-rw-r--r--apps/files_archive/lib/zip.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_archive/lib/zip.php b/apps/files_archive/lib/zip.php
index eab101b3a5c..16f2273f443 100644
--- a/apps/files_archive/lib/zip.php
+++ b/apps/files_archive/lib/zip.php
@@ -129,6 +129,15 @@ class OC_Archive_ZIP extends OC_Archive{
file_put_contents($dest,$fp);
}
/**
+ * extract the archive
+ * @param string path
+ * @param string dest
+ * @return bool
+ */
+ function extract($dest){
+ return $this->zip->extractTo($dest);
+ }
+ /**
* check if a file or folder exists in the archive
* @param string path
* @return bool