Files
luxtools-client/internal/openfolder/open_windows.go
2026-01-06 14:06:27 +01:00

15 lines
240 B
Go

//go:build windows
package openfolder
import (
"os/exec"
"strings"
)
func OpenLocation(path string) error {
// explorer requires backslashes.
p := strings.ReplaceAll(path, "/", "\\")
return exec.Command("explorer.exe", p).Start()
}