luaposix: numeric presentation of stat().mode
currently, posix.stat only provides a human-readable representation of file mode. http://wiki.alpinelinux.org/w/index.php?title=LPOSIX\#stat indicates a “_mode” option for numneric mode, but this does not exist.
> a = posix.stat("/etc/") > print(a["mode"]) rwxr-xr-x > print(a["_mode"]) nil
Although the current format of posix.stat(f, “mode”) can be used with posix.chmod, it would improve interoperability and processing to provide numeric mode.
(from redmine: issue id 185, created on 2009-10-15, closed on 2010-07-07)