Skip to content

Commit c95174b

Browse files
clear error state before fetching dir so we can differentiate between empty dir and error fetching entries
1 parent 66a1377 commit c95174b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fs/filesystem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,7 @@ void init_filesystem()
15471547

15481548
fs_directory_entry_t* fs_get_items(const char* pathname)
15491549
{
1550+
fs_set_error(FS_ERR_NO_ERROR);
15501551
fs_tree_t* item = walk_to_node(fs_tree, pathname);
15511552
make_vfs_path(pathname, item);
15521553
return (fs_directory_entry_t*)(item ? item->files : NULL);

0 commit comments

Comments
 (0)