(id uint64)
| 115 | } |
| 116 | |
| 117 | func (s *Storage) tempNames(id uint64) ([]string, error) { |
| 118 | dir := s.tempDir(id) |
| 119 | files, err := os.ReadDir(dir) |
| 120 | if err != nil { |
| 121 | return nil, err |
| 122 | } |
| 123 | var names []string |
| 124 | for _, v := range files { |
| 125 | if !v.IsDir() { |
| 126 | names = append(names, filepath.Join(dir, v.Name())) |
| 127 | } |
| 128 | } |
| 129 | return names, nil |
| 130 | } |