Commit 4ea48533 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

splitExt wrapper in image module.

parent 1de490d4
......@@ -26,6 +26,7 @@ and file names:
looksLikeImage
removeExt
splitExt
addExt
defaultExt
loadIndexedImageFile
......@@ -799,6 +800,15 @@ def removeExt(filename):
return fslpath.removeExt(filename, ALLOWED_EXTENSIONS)
def splitExt(filename):
"""Splits the base name and extension for the given ``filename``.
See :func:`~fsl.utils.path.splitExt`.
"""
return fslpath.splitExt(filename, ALLOWED_EXTENSIONS)
def addExt(prefix, mustExist=True):
"""Adds a file extension to the given file ``prefix``.
......
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