fix bug in ec_file:copy/3 spec
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
This commit is contained in:
parent
eab58fb660
commit
a9f2a771f0
1 changed files with 3 additions and 3 deletions
|
@ -36,12 +36,12 @@
|
||||||
%% Types
|
%% Types
|
||||||
%%============================================================================
|
%%============================================================================
|
||||||
-type option() :: recursive.
|
-type option() :: recursive.
|
||||||
-type void() :: ok.
|
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% API
|
%%% API
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%% @doc copy an entire directory to another location.
|
%% @doc copy an entire directory to another location.
|
||||||
-spec copy(file:name(), file:name(), Options::[option()]) -> void().
|
-spec copy(file:name(), file:name(), Options::[option()]) -> ok | {error, Reason::term()}.
|
||||||
copy(From, To, []) ->
|
copy(From, To, []) ->
|
||||||
copy(From, To);
|
copy(From, To);
|
||||||
copy(From, To, [recursive] = Options) ->
|
copy(From, To, [recursive] = Options) ->
|
||||||
|
@ -230,7 +230,7 @@ tmp() ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% Copy the subfiles of the From directory to the to directory.
|
%% Copy the subfiles of the From directory to the to directory.
|
||||||
-spec copy_subfiles(file:name(), file:name(), [option()]) -> void().
|
-spec copy_subfiles(file:name(), file:name(), [option()]) -> {error, Reason::term()} | ok.
|
||||||
copy_subfiles(From, To, Options) ->
|
copy_subfiles(From, To, Options) ->
|
||||||
Fun =
|
Fun =
|
||||||
fun(ChildFrom) ->
|
fun(ChildFrom) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue