microsoft / microsoft/vscode-wasm

Issue with mountpoints and virtual file systems

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.