[Windows] io.rmRF doesn't delete long file names
Open
Nobody has claimed this yet.
bug
io
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
io.rmRF which can be found here, doesn't support deleting long files names.
To Reproduce
- Have folder/files with very long names (255+)
- Run:
rd /s /q "${inputPath}" - error: "The path
...is too long."
Expected behavior
Running a PowerShell script like this works.
Remove-Item -LiteralPath "${inputPath}" -Force -Recurse
Desktop (please complete the following information):
- OS: Windows
Contributor guide
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 in packages/io/src/io.ts at the linked io.rmRF implementation and reproduce deletion of a 255+ character path on Windows. Compare the failing rd /s /q behavior with the demonstrated PowerShell Remove-Item command; done means io.rmRF can delete the long-named folder without the path-too-long error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100