Ask which path to modify.

@return string|null the path name to modify or null to finish
554155
private function askPathToModify()
    {
        $names = $this->resolver->names();
        $count = count($names);

        $question = new Question('Enter # or name to modify or empty to continue');
        $question->setValidator(function ($value) use ($names, $count) {
            if ($value === null) {
                return $value;
            }

            if (!is_numeric($value) && array_search($value, $names) !== false) {
                return $value;
            } elseif ($value > 0 && $value <= $count) {
                return $names[$value - 1];
            }

            throw new \Exception("Please enter a name or a number between 1 and $count.");
        });
        $question->setAutocompleterValues($names);

        return $this->io->askQuestionThenRemove($question);
    }
710767
public function getPath() : string
    {
        if ($this->fullPath !== null) {
            return $this->fullPath;
        }

        $path = $this->getSetting('path');

        if (is_dir($path)) {
            $this->verified = true;

            return $this->fullPath = realpath($path);
        }

        $pubPath = public_path(trim($path, '/'));

        $this->verified = is_dir($pubPath);

        return $this->fullPath = $pubPath;
    }
832355
protected function getPath()
    {
        if (null === $this->parent) {
            return null;
        }
        if (null !== ( $pPath = $this->parent->getPath() )) {
            return $pPath . '.' . $this->handle;
        }else {
            return $this->handle;
        }
    }
657784
public function getResourcePath()
    {
        if (empty($this->resource)) {
            $path = request()->path();

            $segments = explode('/', $path);
            array_pop($segments);

            $this->resource = implode('/', $segments);
        }

        return $this->resource;
    }
810126
public function pathAndQuery()
    {
        $query = Request::getQueryString();
        $path = ltrim(Request::path(), '/'); // ltrim fixes homepage
        return $query ? $path.'?'.$query : $path;
    }
211315
private function getCurrentUrlPath()
    {
        if ($this->path) {
            return $this->path;
        }

        /**
         * check if the path is empty otherwise
         * set it with the server variable and if there's no server variable set it as the default delimiter [/] the root
         */
        $this->path = !empty($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : null;
        $this->urlPart = $this->parsePath($this->path);

        return $this->path;
    }
1349851
private function getTemplateArgumentPath()
    {
        if ($this->customTemplatePath !== null) {
            return str_finish($this->customTemplatePath, '/');
        }

        return str_finish(find_tse_template($this->getTemplateName()), '/');
    }
573543
public function path() {
		$args = func_get_args();
		if (count($args)) {
			$this->path = $this->verify($args[0]);
		}
		return $this->path;
	}
720400
static public function getCurrentPath()
	{
	    $baseUrl = static::getRootUrl();
	    $parts = parse_url(static::getCurrentUrl());
	    $baseUrl .= isset($parts['path']) ? $parts['path'] : null;
	    
	    return rtrim($baseUrl, '/');
	}
1035014
public function getPath()
    {
        if ($this->requestTarget === null) {
            return $this->uri->getPath();
        }

        list($path) = explode('?', $this->requestTarget);

        return $path;
    }
1317303
public function path()
    {
        $dirname = $this->dirname();

        if ($this->parent instanceof Root) { //at root

            return $dirname.$this->basename();
        }

        return sprintf('%s/%s', $dirname, $this->basename());

    }
669383
public function getPath()
    {
        if (isset($this->_options[self::OPTION_SCROLL_ID])) {
            return '_search/scroll';
        }

        $indices = $this->getIndices();

        $path = '';
        $types = $this->getTypes();

        if (empty($indices)) {
            if (!empty($types)) {
                $path .= '_all';
            }
        } else {
            $path .= \implode(',', $indices);
        }

        if (!empty($types)) {
            $path .= '/'.\implode(',', $types);
        }

        // Add full path based on indices and types -> could be all
        return $path.'/_search';
    }
78576
public function originalPath()
    {
        if (is_int($pos = strpos($this->get('REQUEST_URI'), '?'))) {
            return substr($this->get('REQUEST_URI'), 0, $pos);
        }
        return substr($this->get('REQUEST_URI'), 0);
    }
832475
public function getCurrentPath()
    {
        $this->pathSegments = array_slice($this->pathSegments, 0, $this->pathLength);

        return $this->pathLength ? '/'.implode('/', $this->pathSegments) : '';
    }
845628
public function getPath()
    {
        $pathInfo = rawurldecode($this->getPathInfo());
        $path = '/' . trim($pathInfo, '/');

        return ($path == '/') ? '' : $path;
    }
187831
public function getExtension()
    {
        if (!isset($this->file['name'])) {
            return null;
        }

        $extension = pathinfo(
            $this->file['name'],
            PATHINFO_EXTENSION
        );

        return strtolower($extension);
    }
317599
public function getPath()
    {
        $path = !empty($this->info['path']) ? '/'.implode('/', $this->info['path']).'/' : '/';

        if (!empty($this->info['file'])) {
            $path .= $this->info['file'];

            if (!empty($this->info['extension'])) {
                $path .= '.'.$this->info['extension'];
            }
        }

        return $path;
    }