From 983bde169190f1d8c5d1ea6f44147aecfde4a3e7 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 5 Dec 2023 11:12:10 -0800 Subject: [PATCH] add fat to list of drives --- kindlecomicconverter/kindle.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kindlecomicconverter/kindle.py b/kindlecomicconverter/kindle.py index 9943590..71bf017 100644 --- a/kindlecomicconverter/kindle.py +++ b/kindlecomicconverter/kindle.py @@ -31,8 +31,7 @@ class Kindle: def findDevice(self): for drive in reversed(psutil.disk_partitions(False)): if (drive[2] == 'FAT32' and drive[3] == 'rw,removable') or \ - (drive[2] == 'vfat' and 'rw' in drive[3]) or \ - (drive[2] == 'msdos' and 'rw' in drive[3]): + (drive[2] in ('vfat', 'msdos', 'FAT') and 'rw' in drive[3]): if os.path.isdir(os.path.join(drive[1], 'system')) and \ os.path.isdir(os.path.join(drive[1], 'documents')): return drive[1]