Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Issue with mountpoints and virtual file systems

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, typescript, wasm

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.

Description

bug

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/')
Dominant language
TypeScript
Stars
456
Forks
40
Avg merge
3d 17h
Merged PRs (30d)
3

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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.

More from microsoft/vscode-wasm

All issues in microsoft/vscode-wasm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.