diff options
Diffstat (limited to 'apps/files_external')
-rwxr-xr-x | apps/files_external/lib/ftp.php | 2 | ||||
-rwxr-xr-x | apps/files_external/lib/google.php | 2 | ||||
-rwxr-xr-x | apps/files_external/lib/swift.php | 8 | ||||
-rwxr-xr-x | apps/files_external/lib/webdav.php | 2 | ||||
-rwxr-xr-x | apps/files_external/tests/ftp.php | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_external/lib/ftp.php b/apps/files_external/lib/ftp.php index 1618a22ba8a..981eeab58bf 100755 --- a/apps/files_external/lib/ftp.php +++ b/apps/files_external/lib/ftp.php @@ -108,7 +108,7 @@ class OC_FileStorage_FTP extends OC_Filestorage_Common{ }else{ $ext=''; } - $tmpFile=OCP\Util::tmpFile($ext); + $tmpFile=OCP\Files::tmpFile($ext); OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this,'writeBack'); if($this->file_exists($path)){ $this->getFile($path,$tmpFile); diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 24a9d6c3d52..a133d35e737 100755 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -84,7 +84,7 @@ class OC_Filestorage_Google extends OC_Filestorage_Common { curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); } if ($isDownload) { - $tmpFile = OCP\Util::tmpFile(); + $tmpFile = OCP\Files::tmpFile(); $fp = fopen($tmpFile, 'w'); curl_setopt($curl, CURLOPT_FILE, $fp); curl_exec($curl); diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php index aaba79d9b7b..e3ba9c240cf 100755 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -164,7 +164,7 @@ class OC_FileStorage_SWIFT extends OC_Filestorage_Common{ * @return array */ private function getSubContainers($container){ - $tmpFile=OCP\Util::tmpFile(); + $tmpFile=OCP\Files::tmpFile(); $obj=$this->getSubContainerFile($container); try{ $obj->save_to_filename($tmpFile); @@ -190,7 +190,7 @@ class OC_FileStorage_SWIFT extends OC_Filestorage_Common{ if(!$name){ return false; } - $tmpFile=OCP\Util::tmpFile(); + $tmpFile=OCP\Files::tmpFile(); $obj=$this->getSubContainerFile($container); try{ $obj->save_to_filename($tmpFile); @@ -225,7 +225,7 @@ class OC_FileStorage_SWIFT extends OC_Filestorage_Common{ if(!$name){ return false; } - $tmpFile=OCP\Util::tmpFile(); + $tmpFile=OCP\Files::tmpFile(); $obj=$this->getSubContainerFile($container); try{ $obj->save_to_filename($tmpFile); @@ -501,7 +501,7 @@ class OC_FileStorage_SWIFT extends OC_Filestorage_Common{ private function getTmpFile($path){ $obj=$this->getObject($path); if(!is_null($obj)){ - $tmpFile=OCP\Util::tmpFile(); + $tmpFile=OCP\Files::tmpFile(); $obj->save_to_filename($tmpFile); return $tmpFile; }else{ diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index 75e5f80d217..07c90d4878e 100755 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -150,7 +150,7 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{ }else{ $ext=''; } - $tmpFile=OCP\Util::tmpFile($ext); + $tmpFile=OCP\Files::tmpFile($ext); OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this,'writeBack'); if($this->file_exists($path)){ $this->getFile($path,$tmpFile); diff --git a/apps/files_external/tests/ftp.php b/apps/files_external/tests/ftp.php index d2d3622fa78..68481b4e66b 100755 --- a/apps/files_external/tests/ftp.php +++ b/apps/files_external/tests/ftp.php @@ -23,7 +23,7 @@ if(!is_array($config) or !isset($config['ftp']) or !$config['ftp']['run']){ } public function tearDown(){ - OCP\Util::rmdirr($this->instance->constructUrl('')); + OCP\Files::rmdirr($this->instance->constructUrl('')); } } } |