MCPcopy
hub / github.com/syncthing/syncthing / CurrentFile

Method CurrentFile

lib/model/folder.go:1436–1442  ·  view source on GitHub ↗

Implements scanner.CurrentFiler

(file string)

Source from the content-addressed store, hash-verified

1434
1435// Implements scanner.CurrentFiler
1436func (cf cFiler) CurrentFile(file string) (protocol.FileInfo, bool) {
1437 fi, ok, err := cf.db.GetDeviceFile(cf.folder, protocol.LocalDeviceID, file)
1438 if err != nil || !ok {
1439 return protocol.FileInfo{}, false
1440 }
1441 return fi, true
1442}

Callers

nothing calls this directly

Calls 1

GetDeviceFileMethod · 0.65

Tested by

no test coverage detected