Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77CBA90AD for ; Sun, 2 Jun 2013 12:15:43 +0000 (UTC) Received: (qmail 95841 invoked by uid 500); 2 Jun 2013 12:08:22 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95736 invoked by uid 500); 2 Jun 2013 12:08:21 -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 95658 invoked by uid 99); 2 Jun 2013 12:08:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jun 2013 12:08:20 +0000 Date: Sun, 2 Jun 2013 12:08:20 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IO-384) New FileUtils method to copy file which might increase in size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sebb created IO-384: ----------------------- Summary: New FileUtils method to copy file which might increase in size Key: IO-384 URL: https://issues.apache.org/jira/browse/IO-384 Project: Commons IO Issue Type: New Feature Reporter: Sebb As mentioned in IO-383, FileUtils.doCopyFile caches the file size. This means that a growing file (e.g. a log file) may cause the method to report failure. It might be useful to have a method which keeps looping until there is no more input; this should not throw an IOE if the sizes are different. More data may have been added - or the file truncated - between completing the copy and checking the size. The method should return the total bytes written; the caller can then check if the count is OK. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira