change file operation mode