| close/1 | |
| consult/1 | Like file:consult/1, but supports paths into zip and escript archives. |
| consult_binary/1 | Like file:consult/1, but operates directly on a binary. |
| eval_binary/1 | Like file:script/1, but operates directly on a binary. |
| eval_binary/2 | Like file:script/2, but operates directly on a binary. |
| list_dir/1 | Like file:list_dir/1, but supports paths into zip and escript archives. |
| open/2 | |
| read_file/1 | Like file:read_file/1, but supports paths into zip and escript archives. |
| script/1 | Like file:script/1, but supports paths into zip and escript archives. |
| script/2 | Like file:script/2, but supports paths into zip and escript archives. |
close(Fd) -> any()
consult(Filename) -> {ok, Terms} | {error, Reason}
Filename = file:name_all()Terms = [term()]Reason = file:posix() | badarg | terminated | system_limit | {Line::integer(), Mod::module(), Term::term()}
Like file:consult/1, but supports paths into zip and escript archives
file:consult/1 on normal paths, but instead of failing
on paths that lead into archives, it does a fair job of entering the archive and
producing a result.
consult_binary(Bin) -> any()
Like file:consult/1, but operates directly on a binary.
file:consult(F) -> {ok,Bin} = file:read_file(F), consult_binary(Bin).
eval_binary(Bin) -> any()
Like file:script/1, but operates directly on a binary.
file:script(F) -> {ok,Bin} = file:read_file(F), eval_binary(Bin).
eval_binary(Bin, Bindings) -> any()
Like file:script/2, but operates directly on a binary.
file:script(F, Bs) -> {ok,Bin} = file:read_file(F), eval_binary(Bin, Bs).
list_dir(Dir) -> {ok, Filenames} | {error, Reason}
Dir = file:name_all()Filenames = [file:filename()]Reason = file:posix() | badarg | {no_translation, Filename::unicode:latin1_binary()}
Like file:list_dir/1, but supports paths into zip and escript archives
file:list_dir/1 on normal paths, but instead of failing
on paths that lead into archives, it does a fair job of entering the archive and
producing a result.
open(File, Opts) -> any()
read_file(Filename) -> {ok, Binary} | {error, Reason}
Filename = file:name_all()Binary = binary()Reason = file:posix() | badarg | terminated | system_limit
Like file:read_file/1, but supports paths into zip and escript archives
file:read_file/1 on normal paths, but instead of failing
on paths that lead into archives, it does a fair job of entering the archive and
producing a result.
script(Filename) -> {ok, Value} | {error, Reason}
Filename = file:name_all()Value = term()Reason = file:posix() | badarg | terminated | system_limit | {Line::integer(), Mod::module(), Term::term()}
Like file:script/1, but supports paths into zip and escript archives
file:script/1 on normal paths, but instead of failing
on paths that lead into archives, it does a fair job of entering the archive and
producing a result.
script(Filename, Bindings) -> {ok, Value} | {error, Reason}
Filename = file:name_all()Bindings = erl_eval:binding_struct()Value = term()Reason = file:posix() | badarg | terminated | system_limit | {Line::integer(), Mod::module(), Term::term()}
Like file:script/2, but supports paths into zip and escript archives
file:script/2 on normal paths, but instead of failing
on paths that lead into archives, it does a fair job of entering the archive and
producing a result.
Generated by EDoc