code: func GetLocalPath(repo string, chartpath string) (string, error) {
  	var depPath string
  	var err error
  	p := strings.TrimPrefix(repo, "file://")
  
  	// root path is absolute
  	if strings.HasPrefix(p, "/") {
  		if depPath, err = filepath.Abs(p); err != nil {
  			return "", err
  		}
  	} else {
  		depPath = filepath.Join(chartpath, p)
  	}
  
  	if _, err = os.Stat(depPath); os.IsNotExist(err) {
  		return "", fmt.Errorf("directory %s not found", depPath)
  	} else if err != nil {
  		return "", err
  	}
  
  	return depPath, nil
  }
docs: // GetLocalPath generates absolute local path when use
  // "file://" in repository of requirements