`getFileName` confused me for a moment, I thought it was going to merely extract the basename.  Consider `_getMinName` as a more descriptive function name.