wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

Read directory bug ?

Open Userzxcvbvnm opened this issue 1 year ago • 2 comments
trafficstars

Steps to reproduce

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.

The c file is uploaded as readdir-c.txt

The wasm file is uploaded as readdir-wasm.txt

Expected behavior

Print:

Successfully get the file fd.
.
..
test.txt

wasmer wasmtime wazero print the above message.

Actual behavior

WAMR prints:

Successfully get the file fd.
opendir.

WAMR print the content of Data/mydir fails.

Envrionment

Windows 10 (amd64) WAMR-1.2.3

Userzxcvbvnm avatar Dec 08 '23 11:12 Userzxcvbvnm

on macOS, it worked as expected. maybe something specific to windows?

yamt avatar Dec 12 '23 03:12 yamt

Windows uses libc-uvwasi by default, the result may be different.

wenyongh avatar Dec 12 '23 06:12 wenyongh