Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 59303 invoked from network); 2 Nov 2008 13:28:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2008 13:28:06 -0000 Received: (qmail 9498 invoked by uid 500); 2 Nov 2008 13:28:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 9429 invoked by uid 500); 2 Nov 2008 13:28:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 9418 invoked by uid 99); 2 Nov 2008 13:28:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 05:28:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2008 13:27:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4FE80234C25F for ; Sun, 2 Nov 2008 05:27:44 -0800 (PST) Message-ID: <234190815.1225632464326.JavaMail.jira@brutus> Date: Sun, 2 Nov 2008 05:27:44 -0800 (PST) From: "Yu Kobayashi (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (IO-184) FileUtils.isAncestor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org FileUtils.isAncestor -------------------- Key: IO-184 URL: https://issues.apache.org/jira/browse/IO-184 Project: Commons IO Issue Type: Improvement Reporter: Yu Kobayashi Priority: Minor Please add FileUtils.isAncestor(). Code is following. public static boolean isAncestor(File file, File ancestor) { File f = file; while (f != null) { if (f.equals(ancestor)) return true; f = f.getParentFile(); } return false; } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.