This commit is contained in:
429Enjoyer committed 2026-05-19 14:28:05 +07:00
1 parent 33be717065
commit e05a9379fc
20 files changed
+1449 -611

No files matched your search

+9 -2
View File
@@ -11,12 +11,19 @@ import (
)
func OpenFolderInExplorer(path string) error {
info, err := os.Stat(path)
if err != nil {
return err
}
if !info.IsDir() {
return os.ErrInvalid
}
var cmd *exec.Cmd
switch runtime.GOOS {
case "windows":
cmd = exec.Command("cmd", "/c", "start", "", path)
cmd = exec.Command("explorer", path)
case "darwin":
cmd = exec.Command("open", path)
case "linux":