zotonic_ssl_util (zotonic_ssl v2.0.0)

View Source

SSL support functions, create self-signed certificates

Summary

Functions

Ensure the directory of a file is present. This will still work if a soft-link in the path refers to a missing directory.

Simple escape function for filenames as commandline arguments. The result includes quotes.

Functions

ensure_dir(Filename)

-spec ensure_dir(file:filename_all()) -> ok | {error, term()}.

Ensure the directory of a file is present. This will still work if a soft-link in the path refers to a missing directory.

os_filename(A)

-spec os_filename(string() | binary()) -> string().

Simple escape function for filenames as commandline arguments. The result includes quotes.