fsl.utils.imcp¶
This module contains functions for moving/copying NIFIT image files.
imcp |
Copy the given src file to destination dest. |
immv |
Move the specified src to the specified dest. |
-
fsl.utils.imcp.imcp(src, dest, overwrite=False, useDefaultExt=False, move=False)[source]¶ Copy the given
srcfile to destinationdest.A
fsl.utils.path.PathErroris raised if anything goes wrong.Parameters: - src – Path to copy. If
allowedExtsis provided, the file extension can be omitted. - dest – Destination path. Can be an incomplete file specification (i.e. without the extension), or a directory.
- overwrite – If
Truethis function will overwrite files that already exist. Defaults toFalse. - useDefaultExt – Defaults to
False. IfTrue, the destination file type will be set according to the default extension, specified bydefaultExt(). If the source file does not have the same type as the default extension, it will be converted. IfFalse, the source file type is not changed. - move – If
True, the files are moved, instead of being copied. Seeimmv().
- src – Path to copy. If