(path string)
| 191 | } |
| 192 | |
| 193 | func fileToUriPath(path string) string { |
| 194 | path = filepath.ToSlash(path) |
| 195 | if (build.IsWindows && len(path) >= 2 && path[1] == ':') || |
| 196 | (strings.HasPrefix(path, "//") && !strings.HasPrefix(path, "///")) { |
| 197 | // Add an extra leading slash for Windows drive letter or UNC path |
| 198 | path = "/" + path |
| 199 | } |
| 200 | return path |
| 201 | } |
| 202 | |
| 203 | func (s *baseDB) Close() error { |
| 204 | s.updateLock.Lock() |