fatfs-wasm / Exports
High-level interface for creating and accessing FAT images using the FatFS library by CHaN.
Ƭ FatFsDiskOptions: Object
Options for creating a FatFsDisk.
Name | Type | Description |
---|---|---|
multiPartition? |
boolean |
Whether or not to enable multi-partition disks, which enables fdisk |
sectorSize? |
number |
The size of the filesystem disk sectors, in bytes. Uses 512 if not provided. |
Ƭ FatFsMkfsOptions: Object
Options provided to mkfs
Name | Type | Description |
---|---|---|
align? |
number |
Data area alignment (sector) |
auSize? |
number |
Cluster size (byte) |
fmt? |
FatFsFormat |
Format option (FM_FAT, FM_FAT32, FM_EXFAT and FM_SFD) |
nFat? |
number |
Number of FATs |
nRoot? |
number |
Number of root directory entries |
path? |
string |
Drive number to format. Empty string uses default drive |