code: func (b *Local) createState(name string) error {
  	if name == backend.DefaultStateName {
  		return nil
  	}
  
  	stateDir := filepath.Join(b.stateWorkspaceDir(), name)
  	s, err := os.Stat(stateDir)
  	if err == nil && s.IsDir() {
  		// no need to check for os.IsNotExist, since that is covered by os.MkdirAll
  		// which will catch the other possible errors as well.
  		return nil
  	}
  
  	err = os.MkdirAll(stateDir, 0755)
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // this only ensures that the named directory exists