calibre 6.20. Windows 11
Before "Windows: Make moving files in the calibre library folder more robust, locking folders in addition to files, before the start of the move", I've never had this problem. Can you please remove this?
I'm getting a similar error when editing the metadata. I did not have it open in another program. The contents of the directory has been deleted. I've edited the eBook. Then I delete the original_epub. Then I go to change the metadata. I press the button to update the cover and the other to update the metadata. Then I get the error and boom, files are gone. I've done this twice with the same result.
Code:
calibre, version 6.20.0
ERROR: Permission denied: Could not change the on disk location of this book. Is it open in another program?
Locked file: I:\E\Calibre Library\Jon2\Michael Connelly\The Lincoln Lawyer (2744)
Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 95, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'I:\\E\\Calibre Library\\Jon2\\Michael Connelly\\The Lincoln Lawyer (2744)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 95, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'I:\\E\\Calibre Library\\Jon2\\Michael Connelly\\The Lincoln Lawyer (2744)'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "calibre\gui2\metadata\single.py", line 617, in apply_changes
File "calibre\gui2\metadata\basic_widgets.py", line 241, in commit
File "calibre\db\legacy.py", line 934, in func
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1508, in set_field
File "calibre\db\cache.py", line 1522, in update_path
File "calibre\db\backend.py", line 1875, in update_path
File "calibre\utils\copy_files.py", line 225, in copy_tree
File "calibre\utils\copy_files.py", line 120, in __enter__
File "calibre\utils\copy_files.py", line 107, in _open_file
File "calibre\utils\copy_files.py", line 111, in _open_file
PermissionError: [Errno 13] File is open in another program: 'I:\\E\\Calibre Library\\Jon2\\Michael Connelly\\The Lincoln Lawyer (2744)'