restic/vendor/bazil.org/fuse/unmount_std.go
2017-07-23 14:25:38 +02:00

17 lines
231 B
Go

// +build !linux
package fuse
import (
"os"
"syscall"
)
func unmount(dir string) error {
err := syscall.Unmount(dir, 0)
if err != nil {
err = &os.PathError{Op: "unmount", Path: dir, Err: err}
return err
}
return nil
}