This commit is contained in:
Daniel Barton 2024-07-28 09:41:46 +00:00 committed by GitHub
commit 148385ecfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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