Adds a new file_mode setting to control the file access mode.