MneExperiment.make_copy(temp, field, src, dst, overwrite=None, **state)

Make a copy of a file to a new path by substituting one field value

  • temp (str) – Template of the file which to copy.

  • field (str) – Field in which the source and target of the link are distinguished.

  • src (str) – Value for field on the source file.

  • dst (str) – Value for field on the destination filename.

  • overwrite (bool) – If the target file already exists, overwrite the old file. The default is to raise an IOError if the file exists. Set to False to quietly keep exising files.

See also


Copy muliple files to a different root directory