summaryrefslogtreecommitdiffstats
path: root/lib/filestorage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-11 15:48:31 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:48 +0100
commit1cffeefa069075054f9c2f676b84ddc02b56232c (patch)
tree240462f92b81db768d9c227974020579666c4849 /lib/filestorage
parent6658f510986aff0e41fee37319a1b0eefa98a4d0 (diff)
downloadnextcloud-server-1cffeefa069075054f9c2f676b84ddc02b56232c.tar.gz
nextcloud-server-1cffeefa069075054f9c2f676b84ddc02b56232c.zip
move implementation of from/toTmpFile from the file storage to the filesystem
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index ee4b267bcd4..de1f83e3e14 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -171,28 +171,6 @@ class OC_Filestorage_Local extends OC_Filestorage{
}
}
- public function toTmpFile($path){
- $tmpFolder=get_temp_dir();
- $filename=tempnam($tmpFolder,'OC_TEMP_FILE_'.substr($path,strrpos($path,'.')));
- $fileStats = stat($this->datadir.$path);
- if(copy($this->datadir.$path,$filename)){
- touch($filename, $fileStats['mtime'], $fileStats['atime']);
- return $filename;
- }else{
- return false;
- }
- }
-
- public function fromTmpFile($tmpFile,$path){
- $fileStats = stat($tmpFile);
- if(rename($tmpFile,$this->datadir.$path)){
- touch($this->datadir.$path, $fileStats['mtime'], $fileStats['atime']);
- return true;
- }else{
- return false;
- }
- }
-
private function delTree($dir) {
$dirRelative=$dir;
$dir=$this->datadir.$dir;