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

dont scan not existing files in View->getFileInfo

parent 09ac61f5
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment