Code cosmetics
bugfix import HttpError from pydrive
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user