Pagekit\Filesystem\Filesystem::exists PHP Method

exists() public method

Checks whether a file or directory exists.
public exists ( string | array $files ) : boolean
$files string | array
return boolean
    public function exists($files)
    {
        $files = (array) $files;
        foreach ($files as $file) {
            $file = $this->getPathInfo($file, 'pathname');
            if (!file_exists($file)) {
                return false;
            }
        }
        return true;
    }