denoland / denoland/std

expandGlob: support an ignore permission denied option

Open
#6,274 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

Currently if you encounter an error due to os permission, if make the whole walk stop.
```
error: Uncaught (in promise) PermissionDenied: Permission denied (os error 13): readdir '/snap/core20/2379/etc/ssl/private'
for await (const entry of Deno.readDir(root)) {
```
An option to "skip" permission denied files would be nice

**Describe the solution you'd like**

A new option

**Describe alternatives you've considered**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.