ef2ef8ef84
Summary: In cases where cmount is not available in macOS, we alias nfsmount to mount command and transparently start the NFS server and mount it to the target dir. The NFS server is started on localhost on a random port so it is reasonably secure. Test Plan: ``` go run rclone.go mount --http-url https://beta.rclone.org :http: nfs-test ``` Added mount tests: ``` go test ./cmd/nfsmount ```
8 lines
270 B
Go
8 lines
270 B
Go
// Build for nfsmount for unsupported platforms to stop go complaining
|
|
// about "no buildable Go source files "
|
|
|
|
//go:build !darwin || cmount
|
|
// +build !darwin cmount
|
|
|
|
// Package nfsmount implements mount command using NFS, not needed on most platforms
|
|
package nfsmount
|