aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/view.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-03-27 13:57:31 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-03-28 12:15:27 +0100
commitaa103bd5b32fc45e5594976c59cd7680bff60d2d (patch)
tree0e4c55600e7e6c552ec92a0774d6b3e7481cac89 /lib/files/view.php
parent4a70315ad1bb58da57b815afe9c723bf96fb521f (diff)
downloadnextcloud-server-aa103bd5b32fc45e5594976c59cd7680bff60d2d.tar.gz
nextcloud-server-aa103bd5b32fc45e5594976c59cd7680bff60d2d.zip
supress write hook for .part files
Diffstat (limited to 'lib/files/view.php')
-rw-r--r--lib/files/view.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 19f33ad64a2..e811fb093cc 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -267,7 +267,7 @@ class View {
$path = $this->getRelativePath($absolutePath);
$exists = $this->file_exists($path);
$run = true;
- if ($this->fakeRoot == Filesystem::getRoot()) {
+ if ($this->fakeRoot == Filesystem::getRoot() && ! Cache\Scanner::isIgnoredFile($path) ) {
if (!$exists) {
\OC_Hook::emit(
Filesystem::CLASSNAME,
@@ -295,7 +295,7 @@ class View {
list ($count, $result) = \OC_Helper::streamCopy($data, $target);
fclose($target);
fclose($data);
- if ($this->fakeRoot == Filesystem::getRoot()) {
+ if ($this->fakeRoot == Filesystem::getRoot() && ! Cache\Scanner::isIgnoredFile($path) ) {
if (!$exists) {
\OC_Hook::emit(
Filesystem::CLASSNAME,
@@ -627,7 +627,7 @@ class View {
private function runHooks($hooks, $path, $post = false) {
$prefix = ($post) ? 'post_' : '';
$run = true;
- if (Filesystem::$loaded and $this->fakeRoot == Filesystem::getRoot()) {
+ if (Filesystem::$loaded and $this->fakeRoot == Filesystem::getRoot() && ! Cache\Scanner::isIgnoredFile($path) ) {
foreach ($hooks as $hook) {
if ($hook != 'read') {
\OC_Hook::emit(