Comment 5 for bug 1664027

Revision history for this message
erkfuizfeuadjfjzefzfuzeff (erkfuizfeuadjfjzefzfuzeff) wrote : Re: [Bug 1664027] Fixed in master

Thank you! I love Calibre!

2017-02-13 12:12 GMT+01:00 Kovid Goyal <email address hidden>:

> Fixed in branch master. The fix will be in the next release. calibre is
> usually released every Friday.
>
> status fixreleased
>
> ** Changed in: calibre
> Status: Incomplete => Fix Released
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1664027
>
> Title:
> error when renaming a similar filename in the files browser from the
> editor
>
> Status in calibre:
> Fix Released
>
> Bug description:
> Dear Calibre,
>
> I use Windows 7 64 bit, Calibre 2.76.0.
>
> I edit an existing epub, already containing files. (e.g. Voor.xhtml)
>
> I add a new file from the menu called "voor.xhtml". Calibre doesn't
> complain because it's different from the other filename called
> "Voor.xhtml".
>
> When I rename voor.xhtml to e.g. voor2.xhtml, an error wil occur as
> soon I press enter to make the change effective.
>
> calibre, version 2.76.0
> ERROR: Failed to rename files: Failed to rename files, click Show
> details for more information.
>
> Traceback (most recent call last):
> File "site-packages\calibre\gui2\tweak_book\job.py", line 35, in run
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 205,
> in rename_files
> File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 125,
> in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 422, in replace_links
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 569, in parsed
> File "site-packages\calibre\ebooks\oeb\polish\container.py", line
> 536, in parse
> IOError: [Errno 2] No such file or directory:
> u'C:\\Users\\Alex\\AppData\\Local\\Temp\\calibre_ir81bw\\
> ixkuob\\00003-g7wtsg\\Voor.xhtml'
>
>
> I admit, using a similar name is asking for trouble, I only discovered
> this too late. There are probably are other problems when using similar
> filenames.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1664027/+subscriptions
>