MCPcopy
hub / github.com/syncthing/syncthing / FileSize

Method FileSize

lib/protocol/bep_fileinfo.go:392–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390}
391
392func (f FileInfo) FileSize() int64 {
393 if f.Deleted {
394 return 0
395 }
396 if f.IsDirectory() || f.IsSymlink() {
397 return SyntheticDirectorySize
398 }
399 return f.Size
400}
401
402func (f FileInfo) BlockSize() int {
403 if f.RawBlockSize < MinBlockSize {

Callers 2

fileIntfJSONMapFunction · 0.80
testfilesMethod · 0.80

Calls 2

IsDirectoryMethod · 0.95
IsSymlinkMethod · 0.95

Tested by 1

testfilesMethod · 0.64