From b61ec7352bb526783bbbc1502feaf0b7be9bf23f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 4 Apr 2014 15:10:07 +0200 Subject: [PATCH] dont scan not existing files in View->getFileInfo --- lib/private/files/view.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 90b0da09c3..94be711486 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 {