Initial scaffold: project structure, .gitignore, go.mod
This commit is contained in:
18
internal/config/paths_windows.go
Normal file
18
internal/config/paths_windows.go
Normal file
@@ -0,0 +1,18 @@
|
||||
//go:build windows
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
// ConfigDir returns %LOCALAPPDATA%\syncwarden.
|
||||
func ConfigDir() string {
|
||||
return filepath.Join(os.Getenv("LOCALAPPDATA"), "syncwarden")
|
||||
}
|
||||
|
||||
// SyncthingConfigPath returns the default Syncthing config.xml path on Windows.
|
||||
func SyncthingConfigPath() string {
|
||||
return filepath.Join(os.Getenv("LOCALAPPDATA"), "Syncthing", "config.xml")
|
||||
}
|
||||
Reference in New Issue
Block a user