update the file mode.