aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/view.php
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-04-23 19:09:01 +0200
committerFlorin Peter <github@florin-peter.de>2013-04-23 19:09:01 +0200
commitf8819f54c2280f492d2e9cd4d7b0f227168d6d99 (patch)
tree29bd5991011b11b0a9f59d1b10b3472b2bf8ddc9 /lib/files/view.php
parentbaa6fd639fb9e6b2a954975603428603fcd04a85 (diff)
parentb7d8da87d0b094c5e55a0ac43995074fa3351618 (diff)
downloadnextcloud-server-f8819f54c2280f492d2e9cd4d7b0f227168d6d99.tar.gz
nextcloud-server-f8819f54c2280f492d2e9cd4d7b0f227168d6d99.zip
Merge branch 'files_encryption' of https://github.com/owncloud/core into files_encryption
Diffstat (limited to 'lib/files/view.php')
-rw-r--r--lib/files/view.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 19f33ad64a2..f607bb59aac 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(
@@ -731,6 +731,7 @@ class View {
* get the content of a directory
*
* @param string $directory path under datadirectory
+ * @param string $mimetype_filter limit returned content to this mimetype or mimepart
* @return array
*/
public function getDirectoryContent($directory, $mimetype_filter = '') {