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
src
file to destinationdest
.A
fsl.utils.path.PathError
is raised if anything goes wrong.- Parameters:
src – Path to copy. If
allowedExts
is 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
True
this 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()
.