epublib.resources.rename module¶
- update_reference_in_same_file(
- old_filename: str,
- new_filename: str,
- reference: str,
- ignore_fragment: bool = False,
Update a reference within the same file when that file is renamed.
- Parameters:
old_filename – The original filename of the file containing the reference.
new_filename – The new filename of the file after renaming.
reference – The original reference to be updated.
ignore_fragment – Whether to ignore the fragment part of the reference.