summaryrefslogtreecommitdiff
path: root/src/rebar_compiler_erl.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-11-27 16:20:32 -0500
committerGitHub <noreply@github.com>2018-11-27 16:20:32 -0500
commitebc1186c34fc5e7855a3e2b1146e37c560bf803e (patch)
treef269406938df522d9cc6b885bb6d982d65c554ad /src/rebar_compiler_erl.erl
parent44f74dc01e52ff5786f9b5f49eb136f206cd41db (diff)
parent8c4a74a3ed9ddd9841e6596ca86b81f3d43906c0 (diff)
Merge pull request #1957 from tsloughter/subdir-behaviours
search subdirectories as well for imports/transforms/behaviours
Diffstat (limited to 'src/rebar_compiler_erl.erl')
-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).