For the latest stable version, please use Emilua API 0.10!

filesystem.chroot

Synopsis

local fs = require "filesystem"
fs.chroot(p: fs.path)

Description

Set the root directory for the calling process.

Only the master VM is allowed to change the root directory.