fsl.utils.imcp
This module contains functions for moving/copying NIFIT image files.
Copy the given |
|
Move the specified |
- 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 file type, specified bydefaultOutputType(). If the source file does not have the same type as the default extension, it will be converted. IfFalse, the source file type is used, and the destination file type (if specified) is ignored.move – If
True, the files are moved, instead of being copied. Seeimmv().