Public Vars

Back

create-temp-file (clj)

(source)

function

(create-temp-file) (create-temp-file {:keys [:dir :prefix :suffix :posix-file-permissions], :as opts})
Creates an empty temporary file using Files#createTempFile. - `(create-temp-file)`: creates temp file with random prefix and suffix. - `(create-temp-file {:keys [:dir :prefix :suffix :posix-file-permissions]})`: create temp file in dir with prefix. If prefix and suffix are not provided, random ones are generated. File permissions can be specified with an `:posix-file-permissions` option. String format for posix file permissions is described in the `str->posix` docstring.

Examples