Virtual chroot
Swift FileSystem virtual chroot provides chroot-like capabilities independent of the underlying filesystem and permits you to restrict access to only files and directories beneath a specified top-level directory.
$dir = filesystem('server1')->get('path/to/dir');
$dir->chroot();