Pyfatfs

Latest version: v1.1.0

Safety actively analyzes 641002 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.0.0

-------------------

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

0.3.1

-------------------

Fixed
~~~~~

* Fix performance regression on FAT16/32 when serializing a FAT to disk via ``__bytes__``
* Improve performance by only parsing fat size once on open() instead of multiple times

0.3.0

-------------------

Added
~~~~~

* Support for dirty bit, detects unclean unmounts of a filesystem,
sets dirty bit on mount and clears it on unmount/close

Deprecated
~~~~~~~~~~

* Implement ``__bytes__()`` instead of ``byte_repr()``,
it will be removed in 1.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`` on ``removetree("/")``
* ``openbin`` now sets the ``b`` 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

0.1.2

-------------------

Fixed
~~~~~

* Fix calculation of FAT entries for FAT12
* `PR 6 <https://github.com/nathanhi/pyfatfs/pull/6>`_: Fix bug in parsing LFNs when opening multiple file systems by `koolkdev <https://github.com/koolkdev>`_
* `PR 7 <https://github.com/nathanhi/pyfatfs/pull/7>`_: Optimize sequential I/O with big files + small bug fixes in writing/allocating clusters by `koolkdev <https://github.com/koolkdev>`_
* Cache known location in filesystem for seek and write operations
* Fix range check during byte allocation
* Don't iterate all clusters on write_data_to_cluster

0.1.1

-------------------

Fixed
~~~~~

* `Issue 4 <https://github.com/nathanhi/pyfatfs/issues/4>`_: Removal of last entry in directory leaves remnants
* `PR 5 <https://github.com/nathanhi/pyfatfs/pull/5>`_: Fix creating directory with name that already conforms to 8DOT3 by `koolkdev <https://github.com/koolkdev>`_

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.