MTP driver: Ignore fonts and system top-level folders

This commit is contained in:
Kovid Goyal 2023-09-01 09:03:40 +05:30
parent 3611a73d96
commit 32814c3607
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -94,7 +94,7 @@ class MTP_DEVICE(BASE):
# Top level ignores # Top level ignores
if lpath[0] in { if lpath[0] in {
'alarms', 'dcim', 'movies', 'music', 'notifications', 'alarms', 'dcim', 'movies', 'music', 'notifications',
'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth', 'pictures', 'ringtones', 'samsung', 'sony', 'htc', 'bluetooth', 'fonts', 'system',
'games', 'lost.dir', 'video', 'whatsapp', 'image', 'com.zinio.mobile.android.reader'}: 'games', 'lost.dir', 'video', 'whatsapp', 'image', 'com.zinio.mobile.android.reader'}:
return True return True