# Hello got a quick question.. I am using \`walkdir\` to scan the file system for file

**URL:** https://discourse.julialang.org/t/hello-got-a-quick-question-i-am-using-walkdir-to-scan-the-file-system-for-file/54194
**Category:** General Usage
**Created:** [January 29, 2021, 5:01pm UTC](https://discourse.julialang.org/t/hello-got-a-quick-question-i-am-using-walkdir-to-scan-the-file-system-for-file/54194 "2021-01-29T17:01:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)
#### Post date: [January 29, 2021, 5:01pm UTC](https://discourse.julialang.org/t/hello-got-a-quick-question-i-am-using-walkdir-to-scan-the-file-system-for-file/54194/1 "2021-01-29T17:01:24Z")

</div>

I am using `walkdir` to scan the file system for files. I am running into an error where everything craps the bed at the first sign of a file that has too high of permissions. I see that `walkdir` accepts `onerror=throws`. What would I need to do to modify `throws` or to write my own function to handle the permissions issues. I just want it to skip over them.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1611939584110700?thread_ts=1611939584.110700&cid=C6A044SQH)

---

<div class="post-metadata">

### Author: ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)
#### Post date: [January 29, 2021, 5:07pm UTC](https://discourse.julialang.org/t/hello-got-a-quick-question-i-am-using-walkdir-to-scan-the-file-system-for-file/54194/2 "2021-01-29T17:07:46Z")

</div>

Just pass `identity` to `onerror` like this:

```julia
walkdir(path; onerror = identity)

```
