summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoricewind1991 <robin@icewind.nl>2014-04-04 18:07:29 +0200
committericewind1991 <robin@icewind.nl>2014-04-04 18:07:29 +0200
commit4028301dea2b7fc36b6a66ea05ae456246d7fb9f (patch)
tree2355da8b0fb05da41cca337e74c2ab584e8064ce /lib
parent0597c5226a24267d6d945dd5f42f3dc9d60c4c0e (diff)
parentb61ec7352bb526783bbbc1502feaf0b7be9bf23f (diff)
downloadnextcloud-server-4028301dea2b7fc36b6a66ea05ae456246d7fb9f.tar.gz
nextcloud-server-4028301dea2b7fc36b6a66ea05ae456246d7fb9f.zip
Merge pull request #8055 from owncloud/getfileinfo-exists
dont scan not existing files in View->getFileInfo
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 90b0da09c37..94be7114865 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -832,6 +832,9 @@ class View {
$user = \OC_User::getUser();
if (!$cache->inCache($internalPath)) {
+ if (!$storage->file_exists($internalPath)) {
+ return false;
+ }
$scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
} else {