commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Hamacher" <eric.hamac...@enetrix.com>
Subject RE: Commons IO FileUtils question
Date Tue, 01 Jul 2008 13:00:07 GMT
Everything is working fine now.  Don't know what was going on before.
Thanks for all the feedback!

Eric

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, July 01, 2008 7:57 AM
To: Commons Users List
Subject: Re: Commons IO FileUtils question

On 30/06/2008, Niall Pemberton <niall.pemberton@gmail.com> wrote:
> On Mon, Jun 30, 2008 at 8:15 PM, Eric Hamacher
>  <eric.hamacher@enetrix.com> wrote:
>  > Hello:
>  >
>  > I took a file on my filesystem, copied and renamed it.  I took the
two
>  > files and compared them using FileUtils.contentEquals(File, File).
In
>  > this case, shouldn't the method return true?  If not, when would it
>  > return true?
>
>
> Yes it should return true. Can you use a debugger to find out which
>  line in FileUtils is returning false? Also best to say which version
>  of Commons IO you are using.
>

Just a thought: if you are using a Windows file system, the copy
command can sometimes change the file, e.g. if there is an EOF (^Z)
character in the file, then copy /a will stop copying after the EOF
character.

This will show up as different file lengths.

>  Niall
>
>  >
>  > Thanks
>  >
>  >
>  >
>  > Regards,
>  >
>  > Eric Hamacher
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message