Initial scaffold: project structure, .gitignore, go.mod

This commit is contained in:
Axel Meyer
2026-03-03 21:07:31 +01:00
commit 2256df9dd7
15 changed files with 892 additions and 0 deletions

View 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")
}