path -> filepath
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
d519a4d0b2
commit
e966392233
|
@ -3,12 +3,12 @@ package servers
|
||||||
import (
|
import (
|
||||||
"cwtch.im/cwtch/event"
|
"cwtch.im/cwtch/event"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.openprivacy.ca/openprivacy/log"
|
|
||||||
"git.openprivacy.ca/cwtch.im/libcwtch-go/constants"
|
"git.openprivacy.ca/cwtch.im/libcwtch-go/constants"
|
||||||
"git.openprivacy.ca/cwtch.im/server"
|
"git.openprivacy.ca/cwtch.im/server"
|
||||||
"git.openprivacy.ca/openprivacy/connectivity"
|
"git.openprivacy.ca/openprivacy/connectivity"
|
||||||
|
"git.openprivacy.ca/openprivacy/log"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ func InitServers(acn connectivity.ACN, appdir string) {
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
defer lock.Unlock()
|
defer lock.Unlock()
|
||||||
if appServers == nil {
|
if appServers == nil {
|
||||||
serversDir := path.Join(appdir, "servers")
|
serversDir := filepath.Join(appdir, "servers")
|
||||||
err := os.MkdirAll(serversDir, 0700)
|
err := os.MkdirAll(serversDir, 0700)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("Could not init servers directory: %s", err)
|
log.Errorf("Could not init servers directory: %s", err)
|
||||||
|
|
Reference in New Issue