fix dep, impl nonempty

This commit is contained in:
Barak Michener 2018-03-30 19:36:37 -07:00
parent c8c18403e4
commit a5d237df2a
24 changed files with 286 additions and 215 deletions

View file

@ -9,7 +9,7 @@ import (
"github.com/sirupsen/logrus"
)
func Serve(hostport string, dir string) {
func Serve(hostport string, dir string, opts *WsFsOpts) {
closer := make(chan bool)
signalChan := make(chan os.Signal, 1)
@ -25,7 +25,7 @@ func Serve(hostport string, dir string) {
req := make(chan RequestCallback, 5)
go func(dir string, closer chan bool) {
err := serveFuse(dir, req, closer)
err := serveFuse(dir, req, *opts, closer)
if err != nil {
logrus.Fatalf("Error serving FUSE: %s", err)
}