OS now displays info about file when it's name is typed in

This commit is contained in:
2024-08-16 08:40:08 +02:00
parent 1257ecc1cc
commit 823cd1761f
3 changed files with 8 additions and 68 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ inode_t* getInode(char* path, dirEntry_t* dentries) {
if (dentries->name[0] == '\0') return NULL;
inode_t* inode = (inode_t*)BOOT_FIRST_INODE_LOC;
while (inode->id != dentries->id) { inode++; }
inode_t* inode = (inode_t*)BOOT_FIRST_INODE_LOC + dentries->id;
return inode;
}