boot-clj / boot-clj/boot

[Suggestion] Filtered Temp Dir

Open
#506 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Clojure
Stars
1.7k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

A common pattern I see is using `with-pre-wrap` and then copying some files to a tmp dir which is then added back to the fileset.

It would be nice if we could simplify this a bit with something like the following:

``` clojure
(with-tempfs fileset (by-ext ["hl"])
... ;;other things
)
```

Which would wrap `with-pre-wrap`, the file copy and `(-> fileset add-resource commit!)`, and a `*tmp*` var available to the user for accessing the temp files.

Thoughts?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.