go trough the updater when uploading over webdav

This commit is contained in:
Robin Appelman 2015-08-03 13:42:36 +02:00
parent af7bcb43b1
commit 2a90cbe603
1 changed files with 1 additions and 2 deletions

View File

@ -208,10 +208,9 @@ class File extends Node implements IFile {
} }
// since we skipped the view we need to scan and emit the hooks ourselves // since we skipped the view we need to scan and emit the hooks ourselves
$partStorage->getScanner()->scanFile($internalPath); $this->fileView->getUpdater()->update($this->path);
if ($view) { if ($view) {
$this->fileView->getUpdater()->propagate($hookPath);
if (!$exists) { if (!$exists) {
\OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array(
\OC\Files\Filesystem::signal_param_path => $hookPath \OC\Files\Filesystem::signal_param_path => $hookPath