triger propagation for webdav uploads
use post hooks for share etag propagator
This commit is contained in:
parent
dd9601ae8f
commit
2e897f05b1
2 changed files with 4 additions and 3 deletions
|
@ -105,8 +105,8 @@ class PropagationManager {
|
||||||
|
|
||||||
// for marking shares owned by the active user as dirty when a file inside them changes
|
// for marking shares owned by the active user as dirty when a file inside them changes
|
||||||
$this->listenToOwnerChanges($user->getUID(), $user->getUID());
|
$this->listenToOwnerChanges($user->getUID(), $user->getUID());
|
||||||
\OC_Hook::connect('OC_Filesystem', 'write', $watcher, 'writeHook');
|
\OC_Hook::connect('OC_Filesystem', 'post_write', $watcher, 'writeHook');
|
||||||
\OC_Hook::connect('OC_Filesystem', 'delete', $watcher, 'writeHook');
|
\OC_Hook::connect('OC_Filesystem', 'post_delete', $watcher, 'writeHook');
|
||||||
\OC_Hook::connect('OC_Filesystem', 'rename', $watcher, 'renameHook');
|
\OC_Hook::connect('OC_Filesystem', 'post_rename', $watcher, 'renameHook');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,6 +181,7 @@ class File extends Node implements IFile {
|
||||||
$view = \OC\Files\Filesystem::getView();
|
$view = \OC\Files\Filesystem::getView();
|
||||||
if ($view) {
|
if ($view) {
|
||||||
$hookPath = $view->getRelativePath($this->fileView->getAbsolutePath($this->path));
|
$hookPath = $view->getRelativePath($this->fileView->getAbsolutePath($this->path));
|
||||||
|
$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
|
||||||
|
|
Loading…
Reference in a new issue