Module rebar_file_utils

Function Index

canonical_path/1
consult_config/2
cp_r/2
delete_each/1
format_error/1
mv/2
path_from_ancestor/2
reset_dir/1
resolve_link/1
rm_rf/1Remove files and directories.
split_dirname/1
symlink_or_copy/2
system_tmpdir/0
system_tmpdir/1
touch/1
try_consult/1
write_file_if_contents_differ/2

Function Details

canonical_path/1

canonical_path(Dir::string()) -> string()

consult_config/2

consult_config(State::rebar_state:t(), Filename::string()) -> [[tuple()]]

cp_r/2

cp_r(Sources::[string()], Dest::file:filename()) -> ok

delete_each/1

delete_each(Rest) -> any()

format_error/1

format_error(X1) -> any()

mv/2

mv(Source::string(), Dest::file:filename()) -> ok

path_from_ancestor/2

path_from_ancestor(Target::string(), To::string()) -> {ok, string()} | {error, badparent}

reset_dir/1

reset_dir(Path) -> ok | {error, Reason}

resolve_link/1

resolve_link(Path::string()) -> string()

rm_rf/1

rm_rf(Target::string()) -> ok

Remove files and directories. Target is a single filename, directoryname or wildcard expression.

split_dirname/1

split_dirname(Path::string()) -> {string(), string()}

symlink_or_copy/2

symlink_or_copy(Source, Target) -> any()

system_tmpdir/0

system_tmpdir() -> file:filename()

system_tmpdir/1

system_tmpdir(PathComponents) -> file:filename()

touch/1

touch(Path) -> ok | {error, Reason}

try_consult/1

try_consult(File) -> any()

write_file_if_contents_differ/2

write_file_if_contents_differ(Filename, Bytes) -> any()


Generated by EDoc, May 1 2024, 06:37:52.