Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0DA917F34 for ; Mon, 23 Mar 2015 23:53:56 +0000 (UTC) Received: (qmail 76572 invoked by uid 500); 23 Mar 2015 23:53:56 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 76509 invoked by uid 500); 23 Mar 2015 23:53:56 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 76498 invoked by uid 99); 23 Mar 2015 23:53:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2015 23:53:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 48B96E1825; Mon, 23 Mar 2015 23:53:56 +0000 (UTC) From: davisp To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb pull request: Allow passing directories as the config sour... Content-Type: text/plain Message-Id: <20150323235356.48B96E1825@git1-us-west.apache.org> Date: Mon, 23 Mar 2015 23:53:56 +0000 (UTC) Github user davisp commented on a diff in the pull request: https://github.com/apache/couchdb/pull/257#discussion_r26992836 --- 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]; --- End diff -- Alternatively, use lists:foldr/3 and just do [V | AccIn] without the reverse. --- 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. ---