123456789101112131415161718 |
- //go:build !linux && !windows
- // +build !linux,!windows
- package unmount
- 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
- }
|