mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MTP driver: Ignore top level folders whose names start with a leading dot
This commit is contained in:
parent
9cd903d954
commit
c7c1d9b201
@ -100,6 +100,8 @@ class MTP_DEVICE(BASE):
|
||||
'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth', 'fonts', 'system',
|
||||
'games', 'lost.dir', 'video', 'whatsapp', 'image', 'com.zinio.mobile.android.reader'}:
|
||||
return True
|
||||
if lpath[0].startswith('.'):
|
||||
return True
|
||||
|
||||
if len(lpath) > 1 and lpath[0] == 'android':
|
||||
# Ignore everything in Android apart from a few select folders
|
||||
|
Loading…
x
Reference in New Issue
Block a user