code: func (nodePlatform *Platform) ValidatePath(rawPath string) error {
  	path, err := url.Parse(rawPath)
  	if err != nil || path == nil {
  		return fmt.Errorf("invalid path: %s", err)
  	}
  
  	//Treat empty scheme as a local filesystem path
  	if path.Scheme == "" {
  		pathToCheck, err := filepath.Abs(rawPath)
  		if err != nil {
  			return fmt.Errorf("error obtaining absolute path of the chaincode: %s", err)
  		}
  
  		exists, err := pathExists(pathToCheck)
  		if err != nil {
  			return fmt.Errorf("error validating chaincode path: %s", err)
  		}
  		if !exists {
  			return fmt.Errorf("path to chaincode does not exist: %s", rawPath)
  		}
  	}
  	return nil
  }
docs: // ValidateSpec validates Go chaincodes