Skip to content

Commit

Permalink
Return false if the stat doesn't find the file
Browse files Browse the repository at this point in the history
  • Loading branch information
jvillafanez committed May 15, 2017
1 parent 639dafd commit 29816bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/files_external/lib/Lib/Storage/SMB.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@ private function removeFromCache($path) {
*/
public function stat($path) {
$this->log('enter: '.__FUNCTION__."($path)");
$result = $this->formatInfo($this->getFileInfo($path));
try {
$result = $this->formatInfo($this->getFileInfo($path));
} catch (NotFoundException $e) {
$this->swallow(__FUNCTION__, $e);
$result = false;
}
return $this->leave(__FUNCTION__, $result);
}

Expand Down

0 comments on commit 29816bf

Please sign in to comment.