Module watts_file_util

Function Index

combine_or_home/2*check if the path starts with ~ and use home as root then.
convert_home/1*append the path to the home dir.
extract_pem/2*helper function to decode pem entries.
read_pem_entries/1helper function to read pem encoded files.
to_abs/1convert a maybe relative path to an absolute path.
to_abs/2convert a maybe relative path to an absolute path, Base beeing the root.

Function Details

combine_or_home/2 *

combine_or_home(Path::string() | binary(), BasePath::string() | binary() | undefined) -> string() | binary()

check if the path starts with ~ and use home as root then.

convert_home/1 *

convert_home(RelativePath::string() | binary()) -> string() | binary()

append the path to the home dir.

extract_pem/2 *

extract_pem(Error::{ok, binary()} | any(), Path::binary()) -> [tuple()]

helper function to decode pem entries

read_pem_entries/1

read_pem_entries(Path::binary()) -> [tuple()]

helper function to read pem encoded files

to_abs/1

to_abs(FileName::string() | binary()) -> string() | binary()

convert a maybe relative path to an absolute path

to_abs/2

to_abs(Path::string() | binary(), BasePath::string() | binary() | undefined) -> string() | binary()

convert a maybe relative path to an absolute path, Base beeing the root.


Generated by EDoc