MCPcopy Create free account
hub / github.com/MertJSX/folderhost / GetActiveFileCount

Function GetActiveFileCount

utils/web_socket_clients.go:99–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func 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
112func IsExistingWSConnectionPath(path string) bool {
113 clientsMu.RLock()

Callers 1

GetRemainingFolderSpaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected