Write contents into the temporary directory, but the directory is the root of inkt project currently.
Write contents into the temporary directory.