Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
1 parent
2e7415e1e6
commit
40b4191d2d
2 files changed
+15
-1
No files matched your search
@@ -42,12 +42,15 @@ impl FileSystem for IsoFS {
|
||||
.filter(|p| p != &"");
|
||||
|
||||
for path_component in path_it {
|
||||
let mut found = false;
|
||||
while curr_entry.idf_len != 0 {
|
||||
serial_println!("{:?}", curr_entry.idf_len);
|
||||
serial_println!("{:?}", alloc::str::from_utf8(curr_entry.get_idf()).unwrap());
|
||||
|
||||
// Found entry
|
||||
if curr_entry.matches(path_component) {
|
||||
serial_println!("Found {}", path_component);
|
||||
found = true;
|
||||
curr_entry_block = read_block(curr_entry.data_blk.le).await;
|
||||
curr_entry = unserialize(curr_entry_block.as_ptr());
|
||||
break;
|
||||
@@ -56,6 +59,9 @@ impl FileSystem for IsoFS {
|
||||
// Next entry
|
||||
curr_entry = curr_entry.next_entry();
|
||||
}
|
||||
if !found {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
let fd = IsoFD::new();
|
||||
|
||||