microsoft / microsoft/WSL

`ReadDirectoryChangesW` method is unsupported on `\\wsl$` paths

Open
#7,674 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Version

Microsoft Windows [Version 10.0.19042.870]

WSL Version
  • WSL 2
  • WSL 1
Kernel Version

4.4.0-19041

Distro Version

Ubuntu 18.04

Other Software

No response

Repro Steps

The ReadDirectoryChangesW function cannot be used to recursively watch a folder path such as \\$wsl\Ubuntu\home, the method invocation returns a non-normal status code.

Expected Behavior

ReadDirectoryChangesW method can be used on \\$wsl\... paths.

Actual Behavior

ReadDirectoryChangesW method cannot be used on \\$wsl\... paths.

Diagnostic Logs

No response

Contributor guide

Open the contributing guide

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 reproducing the reported recursive watch failure with ReadDirectoryChangesW on the specified WSL paths and inspect the WSL handling for that API. Done means establishing whether support can be added and verifying that directory watching works for the reported paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.