appendName static method
Implementation
static String appendName(String path, String append) {
path = sanitize(path);
String name = path.split('/').last;
List<String> seg = name.split('.');
seg[0] = seg[0] + append;
return join(parentOf(path), seg.join('.'));
}