Setting the mode on file add/get methods.