pod.epiccastle.bbssh.impl.utils
create-dirs
(create-dirs file mode)create-file
(create-file file mode)decode-base64
(decode-base64 base64)decoder
double-quote
(double-quote string)encode-base64
(encode-base64 array)encoder
escape-double-quotes
(escape-double-quotes path)file-mode
(file-mode file)last-access-time
(last-access-time file)last-modified-time
(last-modified-time file)mode->permission
mode->permission-set
(mode->permission-set mode)new-invoker
(new-invoker {:keys [call-sym args callbacks preprocess-args-fn postprocess-returns-fn], :or {preprocess-args-fn (fn [_method args] args), postprocess-returns-fn (fn [_method result] result)}})opt-decode-base64
(opt-decode-base64 key)If passed a string, decode it as base64 and return a byte array. If passed a byte array, just return it as is.
opt-get-bytes
(opt-get-bytes data & [encoding])If passed a string, return the underlying byte array using the encoding (defaults to utf8). If passed a byte arrayu, just return it as it is.
permission->mode
permission-set->mode
(permission-set->mode permission-set)quote-path
(quote-path path)update-file-times
(update-file-times file [mtime atime])