mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15692] Allow to check if file exists using adapter too
PHPBB3-15692
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user