lua-path
lua-path copied to clipboard
Lack of LuaFileSystem is not notified (Linux)
I write this more for reference for users who may have the same problems.
When LuaFileSystem is not installed, doing
path = require "path"
does not produce any message and seems to succeed. However the returned table lacks many of the functions of the API, e.g. exists().
Solution: install LuaFileSystem first.
This issue is about the fact that loading the module should produce a warning or something.
This is the case for require "path.fs" but not for require "path", which is normal usage.