This commit fixes the behavior of path_open such that if the path contains trailing slashes and the target file is not a directory, the call errors. This behavior is consistent with Linux host, Wasmtime, WAMR, and WasmEdge.
It would be good to align with implementations on these errors, and given the current architecture handling it in the path normalization seems a good way to go about it.
This commit fixes the behavior of
path_open
such that if the path contains trailing slashes and the target file is not a directory, the call errors. This behavior is consistent with Linux host, Wasmtime, WAMR, and WasmEdge.fixes #267