nathanhi / pyfatfs

Python based FAT12/FAT16/FAT32 implementation with VFAT support
https://pypi.org/project/pyfatfs/
MIT License
29 stars 14 forks source link

FatIO: don't flush files on close if not open for writing #23

Closed abrasive closed 2 years ago

abrasive commented 2 years ago

Otherwise, you can never close a file on a read-only file system: the flush call will bomb out with a read-only error.

nathanhi commented 2 years ago

Awesome, thank you very much for your contribution!