From 27919a4ab2b443f7dc430fbdeeb66cb30ba588ae Mon Sep 17 00:00:00 2001 From: Daniel Barton Date: Sun, 28 Jul 2024 17:39:44 +0800 Subject: [PATCH] fix: Symlinks not flagged as symlinks in file listing --- server/filesystem/stat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/filesystem/stat.go b/server/filesystem/stat.go index 9d446be..94cab60 100644 --- a/server/filesystem/stat.go +++ b/server/filesystem/stat.go @@ -38,7 +38,7 @@ func (s *Stat) MarshalJSON() ([]byte, error) { Size: s.Size(), Directory: s.IsDir(), File: !s.IsDir(), - Symlink: s.Mode().Perm()&ufs.ModeSymlink != 0, + Symlink: s.Mode().Type()&ufs.ModeSymlink != 0, Mime: s.Mimetype, }) }