(goos, script string)
| 79 | } |
| 80 | |
| 81 | func platformShellCommand(goos, script string) (string, []string) { |
| 82 | if goos == "windows" { |
| 83 | return "cmd.exe", []string{"/D", "/S", "/C", script} |
| 84 | } |
| 85 | return "/bin/sh", []string{"-c", script} |
| 86 | } |
| 87 | |
| 88 | func (s *shellThumbnailTypeHandler) CreateThumbnail(ctx context.Context, entry ThumbnailEntry, dest io.Writer) error { |
| 89 | if s.maxSize > 0 && entry.Size() > s.maxSize { |
no outgoing calls