Pagekit\Filesystem\Filesystem::exists PHP 메소드

exists() 공개 메소드

Checks whether a file or directory exists.
public exists ( string | array $files ) : boolean
$files string | array
리턴 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;
    }