summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() ->