diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-03-07 19:16:34 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-03-07 19:16:48 -0600 |
commit | 794b985b1b8f7fde79a0b9562bfcd2f68c45777f (patch) | |
tree | 07faff099a87b43de2388308c090378ec370c176 | |
parent | 5ef7d024c30c35e69e4882c1bc847fd46af6901a (diff) |
don't traverse into subdirectories looking for beams
-rw-r--r-- | src/rebar_utils.erl | 3 |
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() -> |