code: func (container *Container) SetupWorkingDirectory(rootIdentity idtools.Identity) error {
  	// TODO @jhowardmsft, @gupta-ak LCOW Support. This will need revisiting.
  	// We will need to do remote filesystem operations here.
  	if container.OS != runtime.GOOS {
  		return nil
  	}
  
  	if container.Config.WorkingDir == "" {
  		return nil
  	}
  
  	container.Config.WorkingDir = filepath.Clean(container.Config.WorkingDir)
  	pth, err := container.GetResourcePath(container.Config.WorkingDir)
  	if err != nil {
  		return err
  	}
  
  	if err := idtools.MkdirAllAndChownNew(pth, 0755, rootIdentity); err != nil {
  		pthInfo, err2 := os.Stat(pth)
  		if err2 == nil && pthInfo != nil && !pthInfo.IsDir() {
  			return errors.Errorf("Cannot mkdir: %s is not a directory", container.Config.WorkingDir)
  		}
  
  		return err
  	}
  
  	return nil
  }
docs: // SetupWorkingDirectory sets up the container's working directory as set in container.Config.WorkingDir