Added finding the next free cluster
Added name to long name
Added long name to short name
Added tests for above
Added createLongNameEntry + tests
Moved tests to bottom
Added createShortNameEntry + test
Used the RTC for the date and time for the created short entry
Tidied createEntries
A bit of refactor
No symlinks for FAT32
findNextFreeCluster updates FAT
Reordered tests to better follow the FAT32FS code
FAT32 has no support for symlinks, so removed code around this.
Removed open_args from createNode as it doesn't need it
Added writeEntries + tests
Write the short and long entries to disk
findNextFreeCluster update cluster chain with parent cluster
Added FAT32 write + tests
This Added the ability to create files and directories and write to files.
Added location of the short dir entry for the file so can update the size of the file on disk
Added folders to the test FAT32 directory.
Also fixed minor bug in mkfat32
Added check for destroying the filesystem
Fixed error message for cluster size
Simpler if condition
0x0FFFFFFF => 0xFFFFFFFF
Spelling
Fixed test
Added a symlink node so can close a open symlink.
Added umount to can unmount a directory.
Closes open directories while traversing the path.
Closes#277
Create test FAT32 image on build
Moved test files to test_files directory
Removed global array for test fat32
Part of #216
Removed hard coded test files
Use @embedFile for large file test
Updated docs
Closes#270
Update doc comment
Moved close to closeFile and closeDir in VFS
Moved back to @ptrCast()
Always forget to format
Added TODO comment
Added open implementation
Needed to return a pointer to the file system as `@fieldParentPtr(Fat32Self, "instance", fs.instance)` doesn't work as the the pointer to `instance` is on the stack, then goes out of scope when the init is returned. So will be using free stack space.
Part of #216
Spelling, doc comments and extra test for open file
init -> create, deinit -> destroy
This adds iterators to loop over the FAT cluster chain and loop over entries in the directory structure of FAT32.
The tests use hand crafted buffers for a FAT32 filesystem. These are too small for real FAT32 but will still demonstrate the same functionality as if there were real FAT32 buffers.
Added tests for EntryIterator init
Fixed memory leaks