I realized i could cut out the middleman

This commit is contained in:
notsomeidiot123 2026-07-05 21:48:16 -04:00
parent 9065a5c68a
commit ecdeadc4f3
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ vfile_t *ramfs_create(vfile_t *root, char *path, FS_FILE_FLAGS flags){
return 0; return 0;
} }
if(path[0] == '/') path++; if(path[0] == '/') path++;
vfile_t *parent = resolve_path(path, root, false); // vfile_t *parent = resolve_path(path, root, false);
vfile_t *parent = root;
if(!parent || !parent->flags & FS_FILE_IS_DIR){ if(!parent || !parent->flags & FS_FILE_IS_DIR){
mlog(MODULE_NAME, "Could not locate parent directory for %s\n", MLOG_PRINT, path); mlog(MODULE_NAME, "Could not locate parent directory for %s\n", MLOG_PRINT, path);
path--; path--;