When expanding lib_dirs, don't crash with 'volumerelative' paths

This commit is contained in:
Juan Jose Comellas 2013-06-18 19:19:41 -03:00
parent 708c190faa
commit d4164c9606

View file

@ -414,7 +414,7 @@ expand_lib_dirs([Dir | Rest], Root, Acc) ->
Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])),
FqApps = case filename:pathtype(Dir) of
absolute -> Apps;
relative -> [filename:join([Root, A]) || A <- Apps]
_ -> [filename:join([Root, A]) || A <- Apps]
end,
expand_lib_dirs(Rest, Root, Acc ++ FqApps).