Update file mode.