Changing Sardine Client Constructor to Disallow Overwrite
Sardine does not have built in functionality to set the overwrite header. However, you can add this functionality by inheriting and overriding the move, copy or upload methods.
The following is an example of how to change the move method. The same change can be applied to the copy and upload methods.
@Override
public void move(String sourceUrl, String destinationUrl, boolean overwrite) throws IOException {
HttpMove move = new HttpMove(sourceUrl, destinationUrl);
move.setHeader(HttpHeaders.OVERWRITE, "F");
this.execute(move, new VoidResponseHandler());
}