From 075c4c58e7adf174b2ba7347186c8260534b10fd Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 17 Feb 2017 22:54:14 +0100 Subject: [PATCH] Revert os.rename to os.renames --- cps/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index f9251147..00ec9553 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -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()