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 A417E1148C for ; Fri, 4 Jul 2014 09:07:53 +0000 (UTC) Received: (qmail 99304 invoked by uid 500); 4 Jul 2014 09:07:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 99246 invoked by uid 500); 4 Jul 2014 09:07:53 -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 99234 invoked by uid 99); 4 Jul 2014 09:07:53 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 09:07:53 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C164399A592; Fri, 4 Jul 2014 09:07:52 +0000 (UTC) From: rnewson 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: <20140704090752.C164399A592@tyr.zones.apache.org> Date: Fri, 4 Jul 2014 09:07:52 +0000 (UTC) Github user rnewson commented on a diff in the pull request: https://github.com/apache/couchdb/pull/257#discussion_r14552437 --- 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 -- should be [V | AccIn] --- 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. ---