feat(storage): add mkdir to FileSystem trait with stubs

This commit is contained in:
2026-10-18 23:06:26 +02:00
parent 25824a01fe
commit d85cb5b55d
8 changed files with 33 additions and 0 deletions

View File

@@ -368,6 +368,8 @@ impl<B: BlockDevice> FileSystem for Fat16<B> {
fn file_size(&mut self, handle: FileHandle) -> Option<usize> {
self.open_files[handle.raw() as usize].as_ref().map(|f| f.size)
}
fn mkdir(&mut self, _path: &[u8]) -> bool { false }
}
fn to_fat_name(name: &[u8]) -> [u8; 11] {