Module rlx_file_utils

Function Index

copy/2
copy/3copy an entire directory to another location.
copy_file_info/3
ensure_writable/1
exists/1
format_error/1
is_dir/1
is_symlink/1
mkdir_p/1Makes a directory including parent dirs if they are missing.
mkdtemp/0
path_from_ancestor/2
print_path/1
remove/1delete a file or directory, including symlinks and junctions.
remove/2delete a file.
symlink_or_copy/2
type/1
wildcard_paths/1expand wildcards and names in the given paths.
write/2
write_term/2

Function Details

copy/2

copy(From::file:name(), To::file:name()) -> ok | {error, term()}

copy/3

copy(From, To, Options) -> any()

copy an entire directory to another location.

copy_file_info/3

copy_file_info(To, From, FileInfoToKeep) -> any()

ensure_writable/1

ensure_writable(File) -> any()

exists/1

exists(Filename::file:filename()) -> boolean()

format_error/1

format_error(X1) -> any()

is_dir/1

is_dir(Path) -> any()

is_symlink/1

is_symlink(Path::file:name()) -> boolean()

mkdir_p/1

mkdir_p(Path::string()) -> ok | {error, Reason::file:posix()}

Makes a directory including parent dirs if they are missing.

mkdtemp/0

mkdtemp() -> file:name() | {error, term()}

path_from_ancestor/2

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

print_path/1

print_path(OriginalPath) -> any()

remove/1

remove(Path::file:name()) -> ok | {error, term()}

delete a file or directory, including symlinks and junctions

remove/2

remove(Path::file:name(), Options::[] | [recursive]) -> ok | {error, term()}

delete a file. Use the recursive option for whole directory trees.

symlink_or_copy/2

symlink_or_copy(Source, Target) -> any()

type/1

type(Path::file:name()) -> file | symlink | directory | undefined

wildcard_paths/1

wildcard_paths(Paths::[file:filename_all()]) -> [string()]

expand wildcards and names in the given paths

write/2

write(FileName::file:name(), Contents::string()) -> ok | {error, term()}

write_term/2

write_term(FileName::file:filename(), Term::term()) -> ok | {error, term()}


Generated by EDoc