(userID string)
| 34 | } |
| 35 | |
| 36 | func (m *mapper) cleanupUser(userID string) { |
| 37 | dirPath := filepath.Join(m.Path, userID) |
| 38 | err := m.FS.RemoveAll(dirPath) |
| 39 | if err != nil { |
| 40 | level.Warn(m.logger).Log("msg", "unable to remove user directory", "path", dirPath, "err", err) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | // cleanup removes all of the user directories in the path of the mapper |
| 45 | func (m *mapper) cleanup() { |
no test coverage detected