Skip to content
Snippets Groups Projects
Commit 4028301d authored by Robin Appelman's avatar Robin Appelman
Browse files

Merge pull request #8055 from owncloud/getfileinfo-exists

dont scan not existing files in View->getFileInfo
parents 0597c522 b61ec735
No related branches found
No related tags found
No related merge requests found
...@@ -832,6 +832,9 @@ class View { ...@@ -832,6 +832,9 @@ class View {
$user = \OC_User::getUser(); $user = \OC_User::getUser();
if (!$cache->inCache($internalPath)) { if (!$cache->inCache($internalPath)) {
if (!$storage->file_exists($internalPath)) {
return false;
}
$scanner = $storage->getScanner($internalPath); $scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW); $scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment