diff options
author | Tristan Sloughter <t@crashfast.com> | 2018-11-25 10:29:14 -0700 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2018-11-25 10:29:14 -0700 |
commit | 8c4a74a3ed9ddd9841e6596ca86b81f3d43906c0 (patch) | |
tree | 789952669ca9fb6097c430bc1435ea100296d879 /src | |
parent | 99a7b7ea36bea41b687475ccfd4dee7dfd6d36d3 (diff) |
search subdirectories as well for imports/transforms/behaviours
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_compiler_erl.erl | 11 |
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). |