ssh/mount.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package ssh import "os/exec" // Mount SSHFS filesystem // requires sshfs binary func Mount(opts ...string) error { execPath, err := exec.LookPath("sshfs") if err != nil { return err } cmd := exec.Command(execPath, opts...) return cmd.Run() }