diff options
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} -> |