12 July 2025 - (in calibre 8.7.0)
- formats_path_segments(with_author, with_title, with_format, with_ext, sep)
return parts of the path to a book format in the calibre library separated by ``sep``. The parameter ``sep`` should usually be a slash (``'/'``). One use is to be sure that paths generated in Save to disk and Send to device templates are shortened consistently. Another is to be sure the paths on the device match the paths in the calibre library.
See the manual for full documentation.