|
@ -188,6 +188,7 @@ Directory_Table* lsfs_find_directory(const char *path, bool drop_filename) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
Directory_Table *dir_table = calloc(1, sizeof(Directory_Table)); |
|
|
Directory_Table *dir_table = calloc(1, sizeof(Directory_Table)); |
|
|
|
|
|
printf("Table index: %lu \n",p_control.fsci.master_table_index ); |
|
|
read_data_from_disk(p_control.fsci.master_table_index, DEFAULT_TABLE_SIZE, dir_table); |
|
|
read_data_from_disk(p_control.fsci.master_table_index, DEFAULT_TABLE_SIZE, dir_table); |
|
|
lsfs_string_array split_path = lsfs_string_split_c(path, '/', false); |
|
|
lsfs_string_array split_path = lsfs_string_split_c(path, '/', false); |
|
|
|
|
|
|
|
@ -206,6 +207,7 @@ Directory_Table* lsfs_find_directory(const char *path, bool drop_filename) |
|
|
if (strcmp(dir_table->entries[j].filename, split_path.strings[i].chars) == 0) |
|
|
if (strcmp(dir_table->entries[j].filename, split_path.strings[i].chars) == 0) |
|
|
{ |
|
|
{ |
|
|
int index_sector = dir_table->entries[j].data_pointer[0]; |
|
|
int index_sector = dir_table->entries[j].data_pointer[0]; |
|
|
|
|
|
printf("Table index: %lu \n",index_sector ); |
|
|
read_data_from_disk(index_sector, DEFAULT_TABLE_SIZE, dir_table); |
|
|
read_data_from_disk(index_sector, DEFAULT_TABLE_SIZE, dir_table); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|