Hello Keith,

Are you looking at the latest code from trunk?

I do not see a call to createTempFile in DefaultFileReplicatorin trunk.

Gary


On Wed, May 1, 2013 at 12:36 PM, Keith Turner <[email protected]> wrote:

> I was looking at the code to see if collisions could occur and if it would
> retry in the case where collisions did occur.  It seems that collisions can
> occur, since the name is based on a random 16 bit in.  It seems like the
> code will throw an error if a collision occurs, but I am not sure.
>
> Why doesn't org.apache.commons.vfs2.impl.DefaultFileReplicator use
> File.createTempFile(String, String, File)?  I was thinking of
> subclassing DefaultFileReplicator and overriding to use
> File.createTempFile().  But I was wondering if there was an issue with this
> approach.
>



-- 
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to