summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-05-10 12:01:50 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-05-10 12:01:50 +0200
commit9134395b43bb92d31abc5de95fb00a024898cfc5 (patch)
tree1d089d160a065c7c5d46bc052d0fa5d89e8f2b3d /lib
parentc3b0d3d38cb2cfe1501a28081dde34dbec2d2621 (diff)
downloadnextcloud-server-9134395b43bb92d31abc5de95fb00a024898cfc5.tar.gz
nextcloud-server-9134395b43bb92d31abc5de95fb00a024898cfc5.zip
don't emit rename hooks on partial file renames
Diffstat (limited to 'lib')
-rw-r--r--lib/files/view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 35053e0729c..f35e1e3dc16 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,