mount_windows.go 562 Bytes
Newer Older
1 2 3 4 5 6
package commands

import (
	"errors"

	cmds "github.com/jbenet/go-ipfs/commands"
7
	"github.com/jbenet/go-ipfs/core"
8 9
)

Simon Kirkby's avatar
Simon Kirkby committed
10
var mountCmd = &cmds.Command{
11 12 13 14
	Helptext: cmds.HelpText{
		Tagline:          "Not yet implemented on Windows",
		ShortDescription: "Not yet implemented on Windows. :(",
	},
15

16 17
	Run: func(req cmds.Request) (interface{}, error) {
		return errors.New("Mount isn't compatible with Windows yet"), nil
18 19
	},
}
20 21 22 23 24 25

func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
	// TODO
	// currently a no-op, but we don't want to return an error
	return nil
}