(req *Request)
| 36 | } |
| 37 | |
| 38 | func (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 | |
| 48 | func fixupFiles(files []FileInfo) []FileInfo { |
| 49 | var out []FileInfo |