1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-13 06:37:40 +00:00

Merge branch 'master' into Develop

# Conflicts:
#	cps/editbooks.py
This commit is contained in:
Ozzieisaacs
2020-05-06 18:47:33 +02:00
12 changed files with 301 additions and 261 deletions

View File

@@ -291,6 +291,7 @@ def delete_book_file(book, calibrepath, book_format=None):
for file in os.listdir(path):
if file.upper().endswith("."+book_format):
os.remove(os.path.join(path, file))
return True, None
else:
if os.path.isdir(path):
if len(next(os.walk(path))[1]):