Open tst2005 opened 6 years ago
Oh, currently dev
returns a type that has major
, minor
and dev
, so print(lfs.attributes(".", "dev").dev)
will work. Thats not correct for compatibility...
Oh thanks! Now I will be able to make some compat stuff...
I think this should be fixed to be compatible..
Hello, I made my possible to follow the luafilesystem behavior/API :
lfs.attributes
and lfs.symlinkattributes
: see https://github.com/justincormack/ljsyscall/pull/227 to have a number value in dev
and rdev
field and also support the table argument.Note: the 2nd PR is made on the base of the first one, I don't know if it the best way to do...
Hello
I compared the
syscall.lfs
to lua file-system (lfs
). Even there are not far to be equivalent I found some differences. Some of them should be emulated or fixed.I found one I'm not able to fix : about the device information returned by
lfs.attributes
.I need it to make a
find
like that are able to stay on the same file system.I got a cdata (
cdata<struct 1222>: 0x40e43248
).Any help is welcome!
Regards