src/Charcoal/App/Script/PathScriptTrait.php
public function pathExists($path)
    {
        if (!is_string($path)) {
            throw new InvalidArgumentException('The path must be a string.');
        }

        return $this->globRecursive($this->basePath().'/'.$path, GLOB_BRACE);
    }
public function pathExists($path)
    {
        if (!is_string($path)) {
            throw new InvalidArgumentException('The path must be a string.');
        }

        return $this->globRecursive($this->basePath().'/'.$path, GLOB_BRACE);
    }
public function pathExists ( $ path ) { if ( ! is_string ( $ path ) ) { throw new InvalidArgumentException ( 'The path must be a string.' ) ; } return $ this -> globRecursive ( $ this -> basePath ( ) . '/' . $ path , GLOB_BRACE ) ; }
Determine if the path exists.

@param  string $path Path to the file or directory.
@throws InvalidArgumentException If the path is invalid.
@return boolean Returns TRUE if the path exists.
Determine if the path exists .