Fix issue whereby file will be transferred before checking the creates argument.