1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-21 18:47:39 +00:00

Added logging information for errors

This commit is contained in:
OzzieIsaacs
2018-07-07 12:27:07 +02:00
parent 30d9991daf
commit 420f685fd9
2 changed files with 2 additions and 1 deletions

View File

@@ -335,6 +335,7 @@ def update_dir_stucture(book_id, calibrepath):
if not os.path.exists(new_title_path):
os.renames(path, new_title_path)
else:
logging.getLogger('cps.web').info("Copying title: " + path + " into existing: " + new_title_path)
for dir_name, subdir_list, file_list in os.walk(path):
for file in file_list:
os.renames(os.path.join(dir_name, file), os.path.join(new_title_path + dir_name[len(path):], file))