Open Userzxcvbvnm opened 10 months ago
There is a file Data/mydir/test.txt is in the path Data/mydir. The test program is to print the files in the path Data/mydir.
Data/mydir/test.txt
Data/mydir
The c file is uploaded as readdir-c.txt
The wasm file is uploaded as readdir-wasm.txt
Print:
Successfully get the file fd. . .. test.txt
wasmer wasmtime wazero print the above message.
WAMR prints:
Successfully get the file fd. opendir.
WAMR print the content of Data/mydir fails.
Windows 10 (amd64) WAMR-1.2.3
on macOS, it worked as expected. maybe something specific to windows?
Windows uses libc-uvwasi by default, the result may be different.
Steps to reproduce
There is a file
Data/mydir/test.txt
is in the pathData/mydir
. The test program is to print the files in the pathData/mydir
.The c file is uploaded as readdir-c.txt
The wasm file is uploaded as readdir-wasm.txt
Expected behavior
Print:
wasmer wasmtime wazero print the above message.
Actual behavior
WAMR prints:
WAMR print the content of
Data/mydir
fails.Envrionment
Windows 10 (amd64) WAMR-1.2.3