Replace file mode.