Merge pull request #8055 from owncloud/getfileinfo-exists

dont scan not existing files in View->getFileInfo
This commit is contained in:
icewind1991 2014-04-04 18:07:29 +02:00
commit 4028301dea
1 changed files with 3 additions and 0 deletions

View File

@ -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 {