The nexuslua function mktemp returns a path to a unique temp directory, analogous to bash mktemp -d.
print(mktemp())