We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc90479 commit 4833a58Copy full SHA for 4833a58
lib/Terminal/Widgets/Volatile/DirTree.rakumod
@@ -48,7 +48,11 @@ class Dir does Node {
48
# XXXX: For now, just fake real caching and be lazy
49
if $refresh || !$!cache-time {
50
$!cache-time = now;
51
- @!children = $!path.dir.map: {
+
52
+ # Directory read may fail due to insufficient permissions
53
+ try my @entries = $!path.dir;
54
55
+ @!children = @entries.map: {
56
.d ?? Dir.new( parent => self, path => $_) !!
57
.l ?? SymLink.new(parent => self, path => $_, target => .readlink) !!
58
.f ?? File.new( parent => self, path => $_) !!
0 commit comments