iru- / lua9p Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
There are two public 9p fileservers (without any authentication) and hosted by different OS/Platforms
tcp!9p.io!564
and call Twalk ./
- everything is finetcp!9p.io!564
and call Twalk /
then get error lua: ./9p.lua:138: attempt to get length of local 'from' (a nil value)
tcp!registry.demo!metacoma.io!30099
and call Twalk ./
then get error lua: ./9p.lua:118: file does not exist
tcp!registry.demo!metacoma.io!30099
and call Twalk /
then get error lua: ./9p.lua:138: attempt to get length of local 'from' (a nil value)
tcp!registry.demo.metacoma.io!30099
and call Twalk ../
- everything is finetcp!9p.io!564
and call Twalk ../
- everything is fine, but the result is different from Twalk ./
How to call properly Twalk against root(/) path of these fileservers in the same way?
Steps to reproduce:
$ git clone -b 9p_walk_bug github.com/metacoma/lua9p
$ cd lua9p
#
# 1 case
#
$ lua ./tcp_testclient.lua 'tcp!9p.io!564' './'
Connecting to tcp!9p.io!564
Walking on ./
#
# 2 case
#
$ lua ./tcp_testclient.lua 'tcp!9p.io!564' '/'
Connecting to tcp!9p.io!564
Walking on /
lua: ./9p.lua:138: attempt to get length of local 'from' (a nil value)
#
# 3 case
#
$ lua ./tcp_testclient.lua 'tcp!registry.demo.metacoma.io!30099' '/'
$ Connecting to tcp!registry.demo.metacoma.io!30099
Walking on /
lua: ./9p.lua:118: file does not exist
#
# 4 case
#
$ lua ./tcp_testclient.lua 'tcp!registry.demo.metacoma.io!30099' './'
$ Connecting to tcp!registry.demo.metacoma.io!30099
Walking on ./
lua: ./9p.lua:138: attempt to get length of local 'from' (a nil value)
#
# 5 case
#
$ lua ./tcp_testclient.lua 'tcp!registry.demo.metacoma.io!30099' '../'
Connecting to tcp!registry.demo.metacoma.io!30099
Walking on ../
Ok
#
# 6 case
#
$ lua ./tcp_testclient.lua 'tcp!9p.io!564' '../'
Connecting to tcp!9p.io!564
Walking on ../
Ok
np.walk
should probably return a status, instead of raising an error as in https://github.com/iru-/lua9p/blob/master/9p.lua#L363.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.