don't emit rename hooks on partial file renames

This commit is contained in:
Jörn Friedrich Dreyer 2013-05-10 12:01:50 +02:00
parent c3b0d3d38c
commit 9134395b43
1 changed files with 2 additions and 2 deletions

View File

@ -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,