The love.filesystem library doesn't let you do anything outside the sandbox. However, LÖVE doesn't disable Lua's built in io
library, so you can use io.open
to open files outside the sandbox and read/write them as normal, as well as other Lua functions like require
and loadfile
.
It also doesn't restrict loading of external modules, so you can (for example) require "lfs"
to load LuaFileSystem and use that, if it is installed.