wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX and WASI
https://wasmer.io
MIT License
18.91k stars 811 forks source link

Cannot rename files in mounted host directories #4126

Open Arshia001 opened 1 year ago

Arshia001 commented 1 year ago

Describe the bug

Renaming files does not work in a mounted host directory.

Steps to reproduce

Use wasi::path_rename or std::fs::rename to rename a file that is inside a mounted host directory.

Michael-F-Bryan commented 1 year ago

The error seems to be part of the FileSystem impl for virtual_fs::mem_fs::FileSystem.

https://github.com/wasmerio/wasmer/blob/7602de387cd6a4cc940098c170320f9f5229a847/lib/virtual-fs/src/mem_fs/filesystem.rs#L480-L482

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Arshia001 commented 2 months ago

This is still a valid issue.