Path resolution and the file operations behind the filesystem capability.
Every path goes through resolve-path, which is where confinement to a root
and the refusal to touch credential files live.
Path resolution and the file operations behind the filesystem capability. Every path goes through `resolve-path`, which is where confinement to a root and the refusal to touch credential files live.
(delete-file opts {:keys [path]})(list-dir opts {:keys [path]})(read-file opts {:keys [path]})(resolve-path {:keys [root allow-secrets?]} path)Resolves path to an absolute canonical File. When root is non-nil the
result must stay inside it, otherwise an exception is thrown.
Resolves `path` to an absolute canonical File. When `root` is non-nil the result must stay inside it, otherwise an exception is thrown.
(secret-path? path)Files that hold credentials. Reading is the default grant, so these are refused unless a caller says otherwise - an agent that can read anything can read your keys, and everything it reads is uploaded.
Files that hold credentials. Reading is the default grant, so these are refused unless a caller says otherwise - an agent that can read anything can read your keys, and everything it reads is uploaded.
(write-file opts {:keys [path content]})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 |