code: func (h *fs) RemoveDirectory(dir string) error {
  	glog.V(2).Infof("Removing directory '%s'", dir)
  
  	// HACK: If deleting a directory in windows, call out to the system to do the deletion
  	// TODO: Remove this workaround when we switch to go 1.7 -- os.RemoveAll should
  	// be fixed for Windows in that release.  https://github.com/golang/go/issues/9606
  	if runtime.GOOS == "windows" {
  		command := exec.Command("cmd.exe", "/c", fmt.Sprintf("rd /s /q %s", dir))
  		output, err := command.Output()
  		if err != nil {
  			glog.Errorf("Error removing directory %q: %v %s", dir, err, string(output))
  			return err
  		}
  		return nil
  	}
  
  	err := os.RemoveAll(dir)
  	if err != nil {
  		glog.Errorf("Error removing directory '%s': %v", dir, err)
  	}
  	return err
  }
docs: // RemoveDirectory removes the specified directory and all its contents