Commit 02629feb authored by Paul McCarthy's avatar Paul McCarthy
Browse files

imcp fail if source doesn't exist

parent 7983846c
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment