Skip to content

fix: fix directory traversal#136

Merged
rolandjitsu merged 1 commit into
mainfrom
fix/fsa-traversal
Jul 12, 2026
Merged

fix: fix directory traversal#136
rolandjitsu merged 1 commit into
mainfrom
fix/fsa-traversal

Conversation

@rolandjitsu

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

  • Bug Fix
  • Feature
  • Refactoring
  • Style
  • Build
  • Chore
  • Documentation
  • CI

Did you add tests for your changes?

  • Yes, my code is well tested
  • Not relevant

If relevant, did you update the documentation?

  • Yes, I've updated the documentation
  • Not relevant

Summary

Fix #130.

Does this PR introduce a breaking change?

No.

Other information

Stacked on top of #133 and #135.

@rolandjitsu rolandjitsu changed the title Fix/fsa traversal fix: fix directory traversal Jul 12, 2026
@coveralls

coveralls commented Jul 12, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 29183110144

Coverage remained the same at 100.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 21 of 21 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 109
Covered Lines: 109
Line Coverage: 100.0%
Relevant Branches: 66
Covered Branches: 66
Branch Coverage: 100.0%
Branches in Coverage %: Yes
Coverage Strength: 410.96 hits per line

💛 - Coveralls

The legacy Entry API (readEntries) throws on some platforms, e.g. dragging a
folder from Windows Explorer into Chromium, which rejected the entire drop.
Prefer getAsFileSystemHandle for directories and fall back to readEntries.

Closes #130
@rolandjitsu
rolandjitsu merged commit 262a448 into main Jul 12, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Directory traversal uses the legacy Entry API (readEntries), which throws on Windows where getAsFileSystemHandle works

2 participants