Fix wrong error code returned by file_tree_read

This commit is contained in:
2025-12-03 21:15:54 +01:00
parent 4bcee9a617
commit 5c192a1e52
+1 -1
View File
@@ -504,7 +504,7 @@ int file_tree_read(FileTree *ft, string path,
return FILETREE_NOENT;
if (e->is_dir)
return FILETREE_NOTDIR;
return FILETREE_ISDIR;
File *f = &e->f;