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

update file cache for target file

parent cdd816c9
Branches
No related tags found
No related merge requests found
...@@ -114,6 +114,15 @@ class Proxy extends \OC_FileProxy { ...@@ -114,6 +114,15 @@ class Proxy extends \OC_FileProxy {
// get encrypted content // get encrypted content
$data = $view->file_get_contents($tmpPath); $data = $view->file_get_contents($tmpPath);
// update file cache for target file
$tmpFileInfo = $view->getFileInfo($tmpPath);
$fileInfo = $view->getFileInfo($path);
if (is_array($fileInfo) && is_array($tmpFileInfo)) {
$fileInfo['encrypted'] = true;
$fileInfo['unencrypted_size'] = $tmpFileInfo['size'];
$view->putFileInfo($path, $fileInfo);
}
// remove our temp file // remove our temp file
$view->deleteAll('/' . \OCP\User::getUser() . '/cache/' . $cacheFolder); $view->deleteAll('/' . \OCP\User::getUser() . '/cache/' . $cacheFolder);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment