MCPcopy Index your code
hub / github.com/syncthing/syncthing / Request

Method Request

lib/protocol/nativemodel_windows.go:38–46  ·  view source on GitHub ↗
(req *Request)

Source from the content-addressed store, hash-verified

36}
37
38func (m nativeModel) Request(req *Request) (RequestResponse, error) {
39 if strings.Contains(req.Name, `\`) {
40 slog.Debug("Dropping request containing invalid path separator", slogutil.FilePath(req.Name))
41 return nil, ErrNoSuchFile
42 }
43
44 req.Name = filepath.FromSlash(req.Name)
45 return m.rawModel.Request(req)
46}
47
48func fixupFiles(files []FileInfo) []FileInfo {
49 var out []FileInfo

Callers

nothing calls this directly

Calls 3

FilePathFunction · 0.92
ContainsMethod · 0.80
RequestMethod · 0.65

Tested by

no test coverage detected