Skip to content

Commit

Permalink
Merge pull request #336 from tsloughter/erlangmk
Browse files Browse the repository at this point in the history
handle directory that doesn't exist in dscv_util
  • Loading branch information
jwilberding committed Apr 18, 2015
2 parents 8fe5ba3 + 371b6c6 commit 3f24628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rlx_dscv_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ format_detail({not_a_directory, EbinDir}) ->

-spec discover_dir(process_fun([term()] | term()),
file:name(),
directory | file | symlink) ->
directory | file | symlink | undefined) ->
[{ok, term()}
| {error, Reason::term()}]
| []
| {ok, term()}
| {error, Reason::term()}.
discover_dir(_ProcessDir, _File, undefined) ->
[];
discover_dir(ProcessDir, File, directory) ->
case ProcessDir(File, directory) of
{ok, Result, true} ->
Expand Down

0 comments on commit 3f24628

Please sign in to comment.