Fix for editing files on windows

This commit is contained in:
Ozzie Isaacs 2020-10-11 18:01:26 +02:00
parent 99fda00442
commit d128b037a5
2 changed files with 8770 additions and 5416 deletions

View File

@ -389,7 +389,7 @@ def update_dir_structure_file(book_id, calibrepath, first_author, orignal_filepa
os.renames(os.path.normcase(os.path.join(dir_name, file)),
os.path.normcase(os.path.join(new_path + dir_name[len(path):], file)))
# change location in database to new author/title path
localbook.path = os.path.join(new_authordir, new_titledir)
localbook.path = os.path.join(new_authordir, new_titledir).replace('\\','/')
except OSError as ex:
log.error("Rename title from: %s to %s: %s", path, new_path, ex)
log.debug(ex, exc_info=True)

File diff suppressed because it is too large Load Diff