diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-04 15:10:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-04-04 15:10:07 +0200 |
commit | b61ec7352bb526783bbbc1502feaf0b7be9bf23f (patch) | |
tree | 35beb79b8f32f4e800f61e1b0c1af3a52cd4441d | |
parent | 09ac61f53b350a9045ee84bc291d9de5904a19b8 (diff) | |
download | nextcloud-server-b61ec7352bb526783bbbc1502feaf0b7be9bf23f.tar.gz nextcloud-server-b61ec7352bb526783bbbc1502feaf0b7be9bf23f.zip |
dont scan not existing files in View->getFileInfo
-rw-r--r-- | lib/private/files/view.php | 3 |
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 { |