From: Jörn Friedrich Dreyer Date: Fri, 10 May 2013 10:01:50 +0000 (+0200) Subject: don't emit rename hooks on partial file renames X-Git-Tag: v5.0.6~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc767f18991c7cffa55cbff694298f27afa3b821;p=nextcloud-server.git don't emit rename hooks on partial file renames --- diff --git a/lib/files/view.php b/lib/files/view.php index 2e8dfd3b4d0..a738b8cac8a 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -350,7 +350,7 @@ class View { return false; } $run = true; - if ($this->fakeRoot == Filesystem::getRoot()) { + if ($this->fakeRoot == Filesystem::getRoot() && !Cache\Scanner::isPartialFile($path1)) { \OC_Hook::emit( Filesystem::CLASSNAME, Filesystem::signal_rename, array( @@ -378,7 +378,7 @@ class View { list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1); $storage1->unlink($internalPath1); } - if ($this->fakeRoot == Filesystem::getRoot()) { + if ($this->fakeRoot == Filesystem::getRoot() && !Cache\Scanner::isPartialFile($path1)) { \OC_Hook::emit( Filesystem::CLASSNAME, Filesystem::signal_post_rename,