I think this should be called ``_get_output_path`` for clarity.