microsoft / microsoft/vscode-wasm
Issue with mountpoints and virtual file systems
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 456
- Forks
- 40
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 4
Description
When working with python running in WASM using the WASM API,
Listing contents on a mounted directory has an issue.
when os.listdir('/usr/folder') is called it works fine,
but doesn't work when I do so with os.listdir('/usr/folder/').
I just see an empty array in the latter case.
sample code to run to see output:
import os
print(os.listdir('/usr/lib/')
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the sample Python code against the mounted /usr/lib path, comparing os.listdir('/usr/lib') with os.listdir('/usr/lib/'). Then trace the WASM API's mountpoint and directory-listing handling to find why the trailing-slash form returns an empty array. Done means both path forms list the mounted directory contents consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript, wasm
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100