[WasmFS] Return errors from getEntries
and getNumEntries
#17807
Merged
getEntries
and getNumEntries
#17807