clojuressh.impl.utils

boolean-to-yes-no

(boolean-to-yes-no val)

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)

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)

string-to-byte-array

(string-to-byte-array s)

to-camel-case

(to-camel-case a)

update-file-times

(update-file-times file [mtime atime])