aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/bazil.org/fuse/unmount_std.go
blob: d6efe276f6cb431d46ba58183b4d6e87f0e292c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +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
}