mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'ignore_appledouble' of https://github.com/xxyzz/calibre
This commit is contained in:
commit
b5b96ae21e
@ -239,6 +239,9 @@ class USBMS(CLI, Device):
|
|||||||
|
|
||||||
def update_booklist(filename, path, prefix):
|
def update_booklist(filename, path, prefix):
|
||||||
changed = False
|
changed = False
|
||||||
|
# Ignore AppleDouble files
|
||||||
|
if filename.startswith("._"):
|
||||||
|
return False
|
||||||
if path_to_ext(filename) in all_formats and self.is_allowed_book_file(filename, path, prefix):
|
if path_to_ext(filename) in all_formats and self.is_allowed_book_file(filename, path, prefix):
|
||||||
try:
|
try:
|
||||||
lpath = os.path.join(path, filename).partition(self.normalize_path(prefix))[2]
|
lpath = os.path.join(path, filename).partition(self.normalize_path(prefix))[2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user