seahen / maven-s3-wagon

A Maven Wagon provider for accessing Amazon's Simple Storage Service (S3)
Other
44 stars 25 forks source link

Use atomic operation to avoid corrupted files on disk #10

Closed velo closed 4 years ago

velo commented 5 years ago

I'm using s3-wagon in combination with maven threads -T1C.

But, from time to time a test fails and the build is interrupted while a file is being downloaded, leaving me with a partial downloaded/corrupted file on disk.

This will download to a temporary file (on same directory) and rename it after.

velo commented 4 years ago

Sorry, for that, I have no access to windows to try this out.

Hopefully you can fix this.