# Method Git.Export()->filemodify()

Method filemodify

  `void filemodify(int mode, string path, string|void dataref)`

Description

  Create or modify a file.

Parameter `mode`

  Mode for the file. See the `MODE_*` constants.

Parameter `path`

  Path to the file relative to the repository root.

Parameter `dataref`

  Reference to the data for the file. One of:

  `string` | A mark reference set by a prior blob command or a full 40-byte SHA-1 of an existing Git blob.
  `zero` | Left out, UNDEFINED or `"inline"` in which case the filemodify command must be followed by a data command.