KamranAhmed\Smasher\Path::getType PHP Method

getType() public method

Gets the type of path i.e. whether it is file, link or dir
public getType ( ) : string
return string
    public function getType()
    {
        if (is_file($this->path)) {
            return 'file';
        } elseif (is_link($this->path)) {
            return 'link';
        } elseif (is_dir($this->path)) {
            return 'dir';
        }
        return "Unknown";
    }