(p string)
| 426 | } |
| 427 | |
| 428 | func filesystemRootForPath(p string) string { |
| 429 | if volume := filepath.VolumeName(p); volume != "" { |
| 430 | return volume + string(filepath.Separator) |
| 431 | } |
| 432 | return string(filepath.Separator) |
| 433 | } |
| 434 | |
| 435 | func (s *Server) browseDirectories(w http.ResponseWriter, r *http.Request) { |
| 436 | requested := strings.TrimSpace(r.URL.Query().Get("path")) |
no outgoing calls
no test coverage detected