func SupportsFUSE()

in internal/proxy/fuse_linux.go [24:33]


func SupportsFUSE() error {
	// This code follows the same strategy found in hanwen/go-fuse.
	// See https://github.com/hanwen/go-fuse/blob/0f728ba15b38579efefc3dc47821882ca18ffea7/fuse/mount_linux.go#L184-L198.
	if _, err := exec.LookPath("fusermount"); err != nil {
		if _, err := exec.LookPath("/bin/fusermount"); err != nil {
			return errors.New("fusermount binary not found in PATH or /bin")
		}
	}
	return nil
}