lua-basedir is a module that limits file and directory operations to be performed under a specified directory.
1
Version 0.4.1-1 of basedir was uploaded 2 years ago. For lua >= 5.1