KamranAhmed\Smasher\Path::validate PHP Method

validate() public method

Validates whether the path exists or not
public validate ( ) : boolean
return boolean
    public function validate()
    {
        if (!is_readable($this->path)) {
            throw new UnreadablePathException("Unable to read the path" . $this->path);
        }
        return true;
    }