public static function type($name)
    {
        $finder = new pakeFinder();

        if (strtolower(substr($name, 0, 3)) == 'dir') {
            $finder->type = 'directory';
        } else {
            if (strtolower($name) == 'any') {
                $finder->type = 'any';
            } else {
                $finder->type = 'file';
            }
        }

        return $finder;
    }