()
| 97 | } |
| 98 | |
| 99 | func GetActiveFileCount() int { |
| 100 | clientsMu.RLock() |
| 101 | defer clientsMu.RUnlock() |
| 102 | |
| 103 | uniqueFiles := make(map[string]bool) |
| 104 | for _, clientInfo := range clients { |
| 105 | if !clientInfo.IsDirectory { |
| 106 | uniqueFiles[clientInfo.Path] = true |
| 107 | } |
| 108 | } |
| 109 | return len(uniqueFiles) |
| 110 | } |
| 111 | |
| 112 | func IsExistingWSConnectionPath(path string) bool { |
| 113 | clientsMu.RLock() |
no outgoing calls
no test coverage detected