update file mode