couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davisp <...@git.apache.org>
Subject [GitHub] couchdb pull request: Allow passing directories as the config sour...
Date Mon, 23 Mar 2015 23:53:36 GMT
Github user davisp commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/257#discussion_r26992810
  
    --- Diff: src/couchdb/couch_app.erl ---
    @@ -37,7 +38,17 @@ get_ini_files(Default) ->
         {ok, [[]]} ->
             Default;
         {ok, [Values]} ->
    -        Values
    +        lists:foldl(
    +		fun (V, AccIn) ->
    +			  case file:read_file_info(V) of
    +				  {ok, #file_info{type = regular}} -> AccIn ++ [V];
    +				  {ok, #file_info{type = directory}} -> AccIn ++ filelib:wildcard(filename:join([V,"*.ini"]));
    --- End diff --
    
    +1 to adding a sort.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message