|
@@ -343,8 +343,8 @@ func (g *Gateway) injectFileLibFunctions(vm *otto.Otto, u *user.User) {
|
|
|
//Hidden file. Skip this
|
|
|
continue
|
|
|
}
|
|
|
- thisRpath, _ := realpathToVirtualpath(fsh, filepath.ToSlash(file), u)
|
|
|
- results = append(results, thisRpath)
|
|
|
+ thisVpath, _ := realpathToVirtualpath(fsh, file, u)
|
|
|
+ results = append(results, thisVpath)
|
|
|
}
|
|
|
reply, _ := vm.ToValue(results)
|
|
|
return reply
|