[ticket/15692] Allow to check if file exists using adapter too

PHPBB3-15692
This commit is contained in:
Rubén Calvo 2018-06-16 17:46:19 +02:00
parent 5934bdaaf1
commit 9650763a19

View file

@ -153,9 +153,9 @@ class storage
*
* @return bool Returns true if the file/directory exist, false otherwise.
*/
public function exists($path)
public function exists($path, $full_check = false)
{
return $this->is_tracked($path);
return ($this->is_tracked($path) && $full_check && $this->get_adapter()->exists($path));
}
/**