tech.v3.io.temp-file

*files-in-flight*

dynamic

random-file-url

(random-file-url & {:keys [dirname suffix]})

random-temp-dir

(random-temp-dir & {:keys [root], :or {root (system-temp-dir)}, :as options})

system-temp-dir

(system-temp-dir)

temp-resource-file

(temp-resource-file & {:keys [dirname suffix]})

Get a temp file location that will be delete when the resource context unwinds

watch-file-for-delete

(watch-file-for-delete path-or-file)

with-temp-dir

macro

(with-temp-dir dirname-var & body)

Execute code with a variable bound to the name of a temp directory that will be removed when the code completes (or throws an exception).