[ 
https://issues.apache.org/jira/browse/IO-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved IO-386.
--------------------------------
    Fix Version/s: 2.12.0
       Resolution: Fixed

We use {{Files.copy(Path,Path,CopyOptions)}} and the implementation no longer 
checks for length of {{File}} objects.

> FileUtils.doCopyFile uses different methods to check the file sizes
> -------------------------------------------------------------------
>
>                 Key: IO-386
>                 URL: https://issues.apache.org/jira/browse/IO-386
>             Project: Commons IO
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 2.12.0
>
>
> FileUtils.doCopyFile uses FileChannel.size() to measure the input file length 
> at the start, and File.length() to compare the lengths at the end.
> This is inconsistent.
> If there is a good reason for this it should be documented, otherwise it 
> should probably use the same method for all the checks.
> [Note: is FileChannel.size() accurate if the file has not been flushed?]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to