mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
c69cf46f06
Summary: Adding a new command to serve any remote over NFS. This is only useful for new macOS versions where FUSE mounts are not available. * Added willscot/go-nfs dependency and updated go.mod and go.sum Test Plan: ``` go run rclone.go serve nfs --http-url https://beta.rclone.org :http: ``` Test that it is serving correctly by mounting the NFS directory. ``` mkdir nfs-test mount -oport=58654,mountport=58654 localhost: nfs-test ``` Then we can list the mounted directory to see it is working. ``` ls nfs-test ```
14 lines
250 B
Go
14 lines
250 B
Go
// For unsupported architectures
|
|
//go:build !unix
|
|
// +build !unix
|
|
|
|
// Package nfs is not supported on non-Unix platforms
|
|
package nfs
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// For unsupported platforms we just put nil
|
|
var Command *cobra.Command = nil
|