Close() implements drive.FileSystemForRemote.
()
| 252 | |
| 253 | // Close() implements drive.FileSystemForRemote. |
| 254 | func (s *FileSystemForRemote) Close() error { |
| 255 | s.mu.Lock() |
| 256 | userServers := s.userServers |
| 257 | children := s.children |
| 258 | s.userServers = make(map[string]*userServer) |
| 259 | s.children = make(map[string]*compositedav.Child) |
| 260 | s.mu.Unlock() |
| 261 | |
| 262 | s.stopUserServers(userServers) |
| 263 | s.closeChildren(children) |
| 264 | return nil |
| 265 | } |
| 266 | |
| 267 | // userServer runs tailscaled serve-taildrive to serve webdav content for the |
| 268 | // given Shares. All Shares are assumed to have the same Share.As, and the |
nothing calls this directly
no test coverage detected