@cryptotaxi247 / kubo / commits / fef46e44f

mount command on windows returns an error instead of nil and adjusted unix-only code

verokarhu committed Aug 1, 2014 at 00:51 UTC fef46e44f858f072840953db281e902fda2d0029
3 files changed +4 -6
cmd/ipfs/mount_unix.go renamed
+1 -1
@@ -1,4 +1,4 @@
1 -// +build !windows
1 +// +build linux darwin freebsd
2
3 package main
4
cmd/ipfs/mount_windows.go
+2 -4
@@ -1,7 +1,7 @@
1 package main
2
3 import (
4 - "fmt"
4 + "errors"
5 "github.com/gonuts/flag"
6 "github.com/jbenet/commander"
7 )
@@ -15,7 +15,5 @@ var cmdIpfsMount = &commander.Command{
15 }
16
17 func mountCmd(c *commander.Command, inp []string) error {
18 - fmt.Printf("not implemented yet\n")
19 -
20 - return nil
18 + return errors.New("mount not yet implemented on windows")
19 }
fuse/readonly/readonly_unix.go renamed
+1 -1
@@ -1,6 +1,6 @@
1 // A Go mirror of libfuse's hello.c
2
3 -// +build !windows
3 +// +build linux darwin freebsd
4
5 package readonly
6