Skip to content

Commit

Permalink
Add support for displaying symlinked folders in file tree
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Mar 19, 2023
1 parent bed91c3 commit 4d19926
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions extensions/file-manager/file-manager-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1116,13 +1116,14 @@ sub get_tree

my $wanted = sub {
my $td = $File::Find::name;
if (-d $td && !-l $td) {
my $ltd = -l $td;
if (-d $td) {
my $push_label = sub {
my ($td, $afic) = @_;
my ($pd, $cd) = $td =~ m|^ (.+) / ([^/]+) \z|x;
my $pp = ($fu && $afic ne '/') ? $afic : undef;
my $c = $r{$td} =
{ key => html_escape("$pp/$td"), title => (defined($cd) ? html_escape($cd) : html_escape($td)) };
{ key => html_escape("$pp/$td"), title => (defined($cd) ? html_escape($cd) : html_escape($td)), link => $ltd };
defined $pd ? (push @{ $r{$pd}{'children'} }, $c) : (push @r, $c);
};

Expand Down
2 changes: 1 addition & 1 deletion extensions/file-manager/file-manager.min.js

Large diffs are not rendered by default.

Binary file modified extensions/file-manager/file-manager.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion unauthenticated/css/bundle.min.css

Large diffs are not rendered by default.

Binary file modified unauthenticated/css/bundle.min.css.gz
Binary file not shown.
Binary file modified unauthenticated/js/bundle.min.js.gz
Binary file not shown.

0 comments on commit 4d19926

Please sign in to comment.