Move "daemonIsOpen" to "2server.go"

This commit is contained in:
RandyTheSilly committed 2025-04-13 18:01:24 -04:00
1 parent dc262c87e8
commit 9458656bdd
2 files changed
+10 -12

No files matched your search

-12
View File
@@ -1,12 +0,0 @@
package daemon
import "os"
func daemonIsOpen() bool {
// check if socketPath exists and is a file
fileInfo, err := os.Stat(socketPath)
if err != nil {
return false
}
return !fileInfo.IsDir()
}