Should probably live in jlib along with the splitFilename() function, or even have as a flag on splitFilename