mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:30:06 +08:00
f7af730b50
This is using godep to manage the vendor directory.
18 lines
231 B
Go
18 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
|
|
}
|