summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-03-07 20:35:04 -0500
committerFred Hebert <mononcqc@ferd.ca>2015-03-07 20:35:04 -0500
commitd26289daf9781f1df20421d8f48c168366b0636c (patch)
tree07faff099a87b43de2388308c090378ec370c176
parent5ef7d024c30c35e69e4882c1bc847fd46af6901a (diff)
parent794b985b1b8f7fde79a0b9562bfcd2f68c45777f (diff)
Merge pull request #244 from tsloughter/master
don't traverse into subdirectories looking for beams
-rw-r--r--src/rebar_utils.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 5bb0e63..7119fa0 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -382,8 +382,7 @@ erl_to_mod(Filename) ->
list_to_atom(filename:rootname(filename:basename(Filename))).
beams(Dir) ->
- filelib:fold_files(Dir, ".*\.beam\$", true,
- fun(F, Acc) -> [F | Acc] end, []).
+ filelib:wildcard(filename:join(Dir, "*.beam")).
-spec abort() -> no_return().
abort() ->