Fork me on GitHub
#babashka
<
2023-02-07
>
teodorlu22:02:56

How should I expect babashka.fs/glob to behave when some files have restricted permissions?

user=> (fs/glob "/private" "**/deps.edn")
java.lang.Exception: Visiting /private/etc/cups/certs failed [at <repl>:6:1]
Specifically: is it possible to use babashka.fs/glob to traverse a folder that contains some subfolders with restricted permissions, and just ignore those?

borkdude22:02:27

Yeah, I think ignoring would be better behavior probably...

borkdude22:02:42

issue and optionally PR welcome

borkdude22:02:48

in babashka/fs

👍 2