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,20 @@
//go:build darwin
package config
import (
"os"
"path/filepath"
)
// ConfigDir returns ~/Library/Application Support/syncwarden.
func ConfigDir() string {
home, _ := os.UserHomeDir()
return filepath.Join(home, "Library", "Application Support", "syncwarden")
}
// SyncthingConfigPath returns the default Syncthing config.xml path on macOS.
func SyncthingConfigPath() string {
home, _ := os.UserHomeDir()
return filepath.Join(home, "Library", "Application Support", "Syncthing", "config.xml")
}