MCPcopy
hub / github.com/syncthing/syncthing / GetDeviceFile

Method GetDeviceFile

internal/db/interface.go:56–56  ·  view source on GitHub ↗

Single files

(folder string, device protocol.DeviceID, file string)

Source from the content-addressed store, hash-verified

54
55 // Single files
56 GetDeviceFile(folder string, device protocol.DeviceID, file string) (protocol.FileInfo, bool, error)
57 GetGlobalAvailability(folder, file string) ([]protocol.DeviceID, error)
58 GetGlobalFile(folder string, file string) (protocol.FileInfo, bool, error)
59

Callers 15

CurrentFolderFileMethod · 0.65
scanSubdirsMethod · 0.65
findRenameMethod · 0.65
handleForcedRescansMethod · 0.65
CurrentFileMethod · 0.65
processNeededMethod · 0.65
handleDirMethod · 0.65
handleSymlinkMethod · 0.65
deleteDirMethod · 0.65
deleteFileMethod · 0.65
renameFileMethod · 0.65

Implementers 1

DBinternal/db/sqlite/db_open.go

Calls

no outgoing calls

Tested by 7

TestBasicsFunction · 0.52
TestDropFilesNamedFunction · 0.52
TestDropFolderFunction · 0.52
TestDropDeviceFunction · 0.52
TestDropAllFilesFunction · 0.52
TestAllForBlocksHashFunction · 0.52