diff options
author | Tristan Sloughter <[email protected]> | 2015-04-17 18:51:33 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-04-17 18:51:33 -0500 |
commit | 371b6c6904ce628b737f9a9e79af84f0f50c783e (patch) | |
tree | dc61861a0ffe400e94d20d1171fd1f8c5dfda5cb /src | |
parent | 9bb67958174e8da27e83318967a35323b746d62f (diff) | |
download | relx-371b6c6904ce628b737f9a9e79af84f0f50c783e.tar.gz relx-371b6c6904ce628b737f9a9e79af84f0f50c783e.tar.bz2 relx-371b6c6904ce628b737f9a9e79af84f0f50c783e.zip |
handle directory that doesn't exist in dscv_util
Diffstat (limited to 'src')
-rw-r--r-- | src/rlx_dscv_util.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_dscv_util.erl b/src/rlx_dscv_util.erl index fefdbce..6fe2712 100644 --- a/src/rlx_dscv_util.erl +++ b/src/rlx_dscv_util.erl @@ -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} -> |