Skip to content

Commit

Permalink
add APFS to external drive
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 committed Aug 6, 2024
1 parent 1093dbf commit 4c73006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kindlecomicconverter/kindle.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +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] in ('vfat', 'msdos', 'FAT') and 'rw' in drive[3]):
(drive[2] in ('vfat', 'msdos', 'FAT', 'apfs') 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 4c73006

Please sign in to comment.