code: func (ed *emptyDir) TearDownAt(dir string) error {
  	if pathExists, pathErr := mount.PathExists(dir); pathErr != nil {
  		return fmt.Errorf("Error checking if path exists: %v", pathErr)
  	} else if !pathExists {
  		klog.Warningf("Warning: Unmount skipped because path does not exist: %v", dir)
  		return nil
  	}
  
  	// Figure out the medium.
  	medium, isMnt, err := ed.mountDetector.GetMountMedium(dir)
  	if err != nil {
  		return err
  	}
  	if isMnt {
  		if medium == v1.StorageMediumMemory {
  			ed.medium = v1.StorageMediumMemory
  			return ed.teardownTmpfsOrHugetlbfs(dir)
  		} else if medium == v1.StorageMediumHugePages {
  			ed.medium = v1.StorageMediumHugePages
  			return ed.teardownTmpfsOrHugetlbfs(dir)
  		}
  	}
  	// assume StorageMediumDefault
  	return ed.teardownDefault(dir)
  }
docs: // TearDownAt simply discards everything in the directory.