summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_compiler_erl.erl11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/rebar_compiler_erl.erl b/src/rebar_compiler_erl.erl
index f0ae6f4..0a560cd 100644
--- a/src/rebar_compiler_erl.erl
+++ b/src/rebar_compiler_erl.erl
@@ -317,16 +317,7 @@ expand_file_names(Files, Dirs) ->
true ->
[Incl];
false ->
- lists:flatmap(
- fun(Dir) ->
- FullPath = filename:join(Dir, Incl),
- case filelib:is_regular(FullPath) of
- true ->
- [FullPath];
- false ->
- []
- end
- end, Dirs)
+ rebar_utils:find_files_in_dirs(Dirs, Incl, true)
end
end, Files).