Skip to content
Snippets Groups Projects
Commit 02629feb authored by Paul McCarthy's avatar Paul McCarthy
Browse files

imcp fail if source doesn't exist

parent 7983846c
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,10 @@ def imcp(src,
# again to get its extension
srcBase, srcExt = fslimage.splitExt(src)
if not op.exists(src):
raise fslpath.PathError('imcp error - source path '
'does not exist: {}'.format(src))
# Figure out the destination file
# extension/type. If useDefaultExt
# is True, we use the default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment