mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15692] Allow to check if file exists using adapter too
PHPBB3-15692
This commit is contained in:
parent
5934bdaaf1
commit
9650763a19
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue