diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 10:54:39 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 10:54:39 +0100 |
commit | 1088068c60d4d085b5751485cf233459d5b0fe3f (patch) | |
tree | 9e03b90f294248155cd6249df8cf39f1f91e7aba /lib/private/Archive | |
parent | 47a300814186061991821f8a707c63a3de636b6d (diff) | |
download | nextcloud-server-1088068c60d4d085b5751485cf233459d5b0fe3f.tar.gz nextcloud-server-1088068c60d4d085b5751485cf233459d5b0fe3f.zip |
Remove \OCP\Files::tmpFolder
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Archive')
-rw-r--r-- | lib/private/Archive/TAR.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Archive/TAR.php b/lib/private/Archive/TAR.php index c9396673399..ef2ea83c3c6 100644 --- a/lib/private/Archive/TAR.php +++ b/lib/private/Archive/TAR.php @@ -139,7 +139,7 @@ class TAR extends Archive { */ public function rename($source, $dest) { //no proper way to delete, rename entire archive, rename file and remake archive - $tmp = \OCP\Files::tmpFolder(); + $tmp = \OC::$server->getTempManager()->getTemporaryFolder(); $this->tar->extract($tmp); rename($tmp . $source, $tmp . $dest); $this->tar = null; @@ -258,7 +258,7 @@ class TAR extends Archive { * @return bool */ public function extractFile($path, $dest) { - $tmp = \OCP\Files::tmpFolder(); + $tmp = \OC::$server->getTempManager()->getTemporaryFolder(); if (!$this->fileExists($path)) { return false; } @@ -323,7 +323,7 @@ class TAR extends Archive { $this->fileList = false; $this->cachedHeaders = false; //no proper way to delete, extract entire archive, delete file and remake archive - $tmp = \OCP\Files::tmpFolder(); + $tmp = \OC::$server->getTempManager()->getTemporaryFolder(); $this->tar->extract($tmp); \OCP\Files::rmdirr($tmp . $path); $this->tar = null; |