Skip to content
Snippets Groups Projects
Commit 99a0ea44 authored by Björn Schießle's avatar Björn Schießle
Browse files

function description fixed

parent 67d00bc6
No related branches found
No related tags found
No related merge requests found
......@@ -120,11 +120,9 @@ class Storage {
}
/**
* Delete versions of a file
* rename versions of a file
*/
public static function rename($oldpath, $newpath) {
error_log("oldpath: $oldpath");
error_log("newpath: $newpath");
public static function rename($oldpath, $newpath) {
list($uid, $oldpath) = self::getUidAndFilename($oldpath);
list($uidn, $newpath) = self::getUidAndFilename($newpath);
$versions_view = new \OC_FilesystemView('/'.$uid .'/files_versions');
......@@ -137,7 +135,6 @@ class Storage {
if(!file_exists($info['dirname'])) mkdir($info['dirname'], 0750, true);
$versions = Storage::getVersions($oldpath);
foreach ($versions as $v) {
error_log("rename(".$oldpath.'.v'.$v['version'].", ". $newpath.'.v'.$v['version'].")");
$versions_view->rename($oldpath.'.v'.$v['version'], $newpath.'.v'.$v['version']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment