Files
kopia/internal/mount/mount_unsupported.go
Nathan Baulch 657fda216a chore(ci): upgrade to golangci-lint 2.6.1 (#4973)
- upgrade to golangci-lint 2.6.1
- updates for gosec
- updates for govet
- updates for perfsprint
- updates modernize

Leaves out modernize:omitempty due to conflicts with tests
2025-11-11 21:27:10 -08:00

19 lines
411 B
Go

//go:build freebsd || openbsd
package mount
import (
"context"
"github.com/pkg/errors"
"github.com/kopia/kopia/fs"
)
// Directory returns an error due to mounting being unsupported on current operating system.
//
//nolint:revive
func Directory(ctx context.Context, entry fs.Directory, mountPoint string, mountOptions Options) (Controller, error) {
return nil, errors.New("mounting is not supported")
}