Skip to content
Snippets Groups Projects
Commit 9134395b authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

don't emit rename hooks on partial file renames

parent c3b0d3d3
Branches
No related tags found
No related merge requests found
...@@ -350,7 +350,7 @@ class View { ...@@ -350,7 +350,7 @@ class View {
return false; return false;
} }
$run = true; $run = true;
if ($this->fakeRoot == Filesystem::getRoot()) { if ($this->fakeRoot == Filesystem::getRoot() && !Cache\Scanner::isPartialFile($path1)) {
\OC_Hook::emit( \OC_Hook::emit(
Filesystem::CLASSNAME, Filesystem::signal_rename, Filesystem::CLASSNAME, Filesystem::signal_rename,
array( array(
...@@ -378,7 +378,7 @@ class View { ...@@ -378,7 +378,7 @@ class View {
list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1); list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1);
$storage1->unlink($internalPath1); $storage1->unlink($internalPath1);
} }
if ($this->fakeRoot == Filesystem::getRoot()) { if ($this->fakeRoot == Filesystem::getRoot() && !Cache\Scanner::isPartialFile($path1)) {
\OC_Hook::emit( \OC_Hook::emit(
Filesystem::CLASSNAME, Filesystem::CLASSNAME,
Filesystem::signal_post_rename, Filesystem::signal_post_rename,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment