Skip to content

Commit

Permalink
add fat to list of drives
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 committed Dec 21, 2023
1 parent e79e5a3 commit 983bde1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kindlecomicconverter/kindle.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def __init__(self):
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]
Expand Down

0 comments on commit 983bde1

Please sign in to comment.