class documentation

class FAT32File(sd_mp.fat32_file):

View In Hierarchy

Represents a fat32_mp_t structure on the FAT32 filesystem.

Attributes: - is_open: Indicates if the file is currently open - last_entry_read: The last directory entry read from the file - attributes: The file attributes (e.g., read-only, hidden, system, etc.) - start_cluster: The starting cluster of the file on the SD card - current_cluster: The current cluster being accessed in the file - file_size: The total size of the file in bytes - position: The current read/write position within the file in bytes - dir_entry_sector: The sector number of the directory entry for this file - dir_entry_offset: The byte offset within the directory sector for this file's entry

Method __setattr__ Set a file attribute, routing position through the C setter.
def __setattr__(self, name, value): ΒΆ

Set a file attribute, routing position through the C setter.

Parameters
name:strThe attribute name to set.
value:objectThe new value for the attribute.