filebrowser/utils/_unused/commands/commands.go
2016-06-25 21:57:10 +01:00

16 lines
267 B
Go

package commands
import (
"os"
"os/exec"
)
// Run executes an external command
func Run(command string, args []string, path string) error {
cmd := exec.Command(command, args...)
cmd.Dir = path
cmd.Stdout = os.Stderr
cmd.Stderr = os.Stderr
return cmd.Run()
}