(folder string, device protocol.DeviceID, file string)
| 124 | } |
| 125 | |
| 126 | func (s *DB) GetDeviceFile(folder string, device protocol.DeviceID, file string) (protocol.FileInfo, bool, error) { |
| 127 | fdb, err := s.getFolderDB(folder, false) |
| 128 | if errors.Is(err, errNoSuchFolder) { |
| 129 | return protocol.FileInfo{}, false, nil |
| 130 | } |
| 131 | if err != nil { |
| 132 | return protocol.FileInfo{}, false, err |
| 133 | } |
| 134 | return fdb.GetDeviceFile(device, file) |
| 135 | } |
| 136 | |
| 137 | func (s *DB) GetGlobalAvailability(folder, file string) ([]protocol.DeviceID, error) { |
| 138 | fdb, err := s.getFolderDB(folder, false) |
nothing calls this directly
no test coverage detected