This commit is contained in:
Kovid Goyal 2024-05-22 20:11:20 +05:30
parent 15c72f8ae1
commit b7551ef8e7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -539,6 +539,7 @@ class MTP_DEVICE(BASE):
data = BytesIO()
self.get_mtp_file(index, data)
tfname = data.getvalue().decode().strip()
if tfname:
thumbnail = storage.find_path(('system', 'thumbnails', tfname))
if thumbnail is not None:
self.delete_file_or_folder(thumbnail)