MCPcopy Index your code
hub / github.com/perkeep/perkeep / tryUnmount

Function tryUnmount

dev/devcam/mount.go:78–83  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

76}
77
78func tryUnmount(dir string) error {
79 if runtime.GOOS == "darwin" {
80 return exec.Command("diskutil", "umount", "force", dir).Run()
81 }
82 return exec.Command("fusermount", "-u", dir).Run()
83}
84
85func (c *mountCmd) RunCommand(args []string) error {
86 err := c.checkFlags(args)

Callers 1

RunCommandMethod · 0.85

Calls 2

RunMethod · 0.65
CommandMethod · 0.65

Tested by

no test coverage detected