summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-04 15:10:07 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-04 15:10:07 +0200
commitb61ec7352bb526783bbbc1502feaf0b7be9bf23f (patch)
tree35beb79b8f32f4e800f61e1b0c1af3a52cd4441d
parent09ac61f53b350a9045ee84bc291d9de5904a19b8 (diff)
downloadnextcloud-server-b61ec7352bb526783bbbc1502feaf0b7be9bf23f.tar.gz
nextcloud-server-b61ec7352bb526783bbbc1502feaf0b7be9bf23f.zip
dont scan not existing files in View->getFileInfo
-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 {