The one read gate for a file that a person opens on the gateway machine: the
session's filesystem roots, its draft rules, the configured deny rules and the
:fs/access gate hooks. The file preview, the media stream and an attachment
that keeps a reference to a file (#450) all ask here, so none of them can show
a file that another of them refuses.
The one read gate for a file that a person opens on the gateway machine: the session's filesystem roots, its draft rules, the configured deny rules and the `:fs/access` gate hooks. The file preview, the media stream and an attachment that keeps a reference to a file (#450) all ask here, so none of them can show a file that another of them refuses.
(env-root env)The canonical root of the live workspace of env, or nil.
The canonical root of the live workspace of `env`, or nil.
(readable-file env root requested)Resolve requested under root with the filesystem roots and read gates of env.
Returns {:file f} for a readable regular file, else {:refusal {:status :type :message :path?}} with the HTTP status that a route answers.
Resolve `requested` under `root` with the filesystem roots and read gates of `env`.
Returns `{:file f}` for a readable regular file, else `{:refusal {:status :type
:message :path?}}` with the HTTP status that a route answers.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |