Code cosmetics

bugfix import HttpError from pydrive
This commit is contained in:
Ozzieisaacs
2019-03-16 17:20:14 +01:00
parent 765b817384
commit a360b1759a
5 changed files with 33 additions and 106 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ def update_dir_structure_file(book_id, calibrepath, first_author):
os.renames(path, new_title_path)
else:
app.logger.info("Copying title: " + path + " into existing: " + new_title_path)
for dir_name, subdir_list, file_list in os.walk(path):
for dir_name, __, 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))