Releases: nathanhi/pyfatfs
Releases · nathanhi/pyfatfs
1.1.0
Added
- (mkfs) #30: Add support for different FAT12 cluster sizes for filesystems up to 256MB by @zurcher / @Microsoft
- #36: Add Python 3.12 support by @zurcher / @Microsoft
Fixed
- #34 (DosDateTime) #35: Gracefully handle invalid file timestamps by @beckerben
- #31 (FATDirectoryEntry): Handle file sizes larger than 4GB gracefully by responding with
PyFATException
anderrno=E2BIG
- Properly lock I/O on write operations to avoid issues on concurrent writes
Changed
- Deprecated
FATDirectoryEntry.{g,s}et_size()
method in favor ofFATDirectoryEntry.filesize
property (will be removed in PyFatFS 2.0) - Only warn of broken long filename entries, do not fail when encountering them
- Convert given PyFilesystem2 opener string arguments to correct type (e.g., string to int)
- Discard unknown PyFilesystem2 opener arguments, do not pass through to underlying PyFatFS constructor
- Lazy load directory entries for performance and regex2fat compatibility
- Introduce lazy_load parameter to allow restoring previous behavior
- #32: Fix tree iteration on non-lazy load by @zurcher / @Microsoft
- #33: Fix missing parent directory entry link on lazy-load by @zurcher / @Microsoft
- #33: Do not re-populate directory structure from disk on pending entry change by @zurcher / @Microsoft
1.0.5
1.0.4
Fixed
- Issue #24: Do not reorder directory entries when adding/removing entries in a directory
- Issue #25: Properly truncate files when configured for truncating (PyFilesystem2/FatIO)
- Always retain last cluster when truncating a file to 0 bytes
- Issue #27: Remove outdated Not yet properly implemented hint from setinfo docstring
1.0.3
1.0.2
1.0.1
1.0.0
Added
- Static
new
method forFATDirectoryEntry
PR #17 <https://github.com/nathanhi/pyfatfs/pull/17>
:mkfs
method by@wackinger <https://github.com/wackinger>
/@Draegerwerk <https://github.com/Draegerwerk>
_FATHeader
class replaced byBootSectorHeader
- Initial support of
FSInfo
formkfs
- Expose
PyFat.set_fp
function to allow using BytesIO / in-memory files. ProvidePyFatBytesIOFS
class for PyFilesystem2
Fixed
- Remove duplicated code
- Properly handle non-ASCII short file names / 8DOT3
- Mark dir/file entries as empty on deletion
- Do not allow creating files when a folder with the same name already exists
- Do not allow creating folders when a file with the same name already exists
Changed
- In order to fix non-ASCII short file names,
FATDirectoryEntry.name
is now ofEightDotThree
type instead ofbytes
Removed
- Legacy
byte_repr()
function,__bytes__()
is to be used instead
as a drop-in replacement to serialize FAT and dentry data for writing to
disk
0.3.1
0.3.0
0.2.0
Added
readinto
method to directly read into a bytearray- Write support for FAT12
Fixed
- Lower required minimum version of PyFilesystem2 to 2.4.0
- Do not fail with
RemoveRootError
onremovetree("/")
openbin
now sets theb
mode on file open- Support non-standard Linux formatted filesystems (i.e. FAT32 with less than 65525 clusters)
- Emits a warning when such a filesystem is encountered
- Remove check for boot signature version