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, }) }