fix: Symlinks not flagged as symlinks in file listing
This commit is contained in:
parent
d739948989
commit
27919a4ab2
|
@ -38,7 +38,7 @@ func (s *Stat) MarshalJSON() ([]byte, error) {
|
||||||
Size: s.Size(),
|
Size: s.Size(),
|
||||||
Directory: s.IsDir(),
|
Directory: s.IsDir(),
|
||||||
File: !s.IsDir(),
|
File: !s.IsDir(),
|
||||||
Symlink: s.Mode().Perm()&ufs.ModeSymlink != 0,
|
Symlink: s.Mode().Type()&ufs.ModeSymlink != 0,
|
||||||
Mime: s.Mimetype,
|
Mime: s.Mimetype,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user