microsoft / microsoft/wil

RemoveDirectoryRecursive fails if directory has read-only attribute

Open
#565 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
C++
Stars
3k
Forks
300
Avg merge
19h 12m
Merged PRs (30d)
1

Description

  1. Create some directory and set read-only attribute.
  2. Create some sub-directories files in that directory.
  3. Call RemoveDirectoryRecursive.
  4. Observe ERROR_ACCESS_DENIED.

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 at the RemoveDirectoryRecursive entry point and reproduce the reported sequence on Windows: create a read-only directory containing files and subdirectories, then call the function. Trace the recursive removal behavior; done means the call succeeds without ERROR_ACCESS_DENIED and removes the directory tree.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.