- upload file in a safer way - remove destination if it is not a file - only set attributes if required Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>