Also note that BLI_path_basename can be used in place of BLI_path_split_file_part when a copy isn't needed.