Commando\Option::parseFilePath PHP Method

parseFilePath() public method

public parseFilePath ( string $file_path ) : string | array
$file_path string
return string | array full file path or an array of file paths in the case where "globbing" is supported
    public function parseFilePath($file_path)
    {
        $path = realpath($file_path);
        if ($this->file_allow_globbing) {
            $files = glob($file_path);
            if (empty($files)) {
                return $files;
            }
            return array_map(function ($file) {
                return realpath($file);
            }, $files);
        }
        return $path;
    }