mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
Revert os.rename to os.renames
This commit is contained in:
parent
ad40a2b5a6
commit
075c4c58e7
@ -263,7 +263,7 @@ def update_dir_stucture(book_id, calibrepath):
|
||||
|
||||
if authordir != new_authordir:
|
||||
new_author_path = os.path.join(os.path.join(calibrepath, new_authordir), os.path.basename(path))
|
||||
os.rename(path, new_author_path)
|
||||
os.renames(path, new_author_path)
|
||||
book.path = new_authordir + '/' + book.path.split('/')[1]
|
||||
db.session.commit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user