Skip to content

1.0.0

Compare
Choose a tag to compare
@nathanhi nathanhi released this 03 Feb 16:58
· 60 commits to master since this release

Added

  • Static new method for FATDirectoryEntry
  • 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 by BootSectorHeader
    • Initial support of FSInfo for mkfs
  • Expose PyFat.set_fp function to allow using BytesIO / in-memory files. Provide PyFatBytesIOFS 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 of EightDotThree type instead of bytes

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