(f *os.File, off int64)
| 170 | } |
| 171 | |
| 172 | func doSplit(f *os.File, off int64) (*os.File, error) { |
| 173 | // Find the filename of the next part number |
| 174 | dir, fname := filepath.Split(f.Name()) |
| 175 | next, first, err := nextSplit(fname) |
| 176 | if err != nil { |
| 177 | return nil, err |
| 178 | } |
| 179 | |
| 180 | if first { |
| 181 | return doFirstSplit(f, dir, fname, next, off) |
| 182 | } |
| 183 | |
| 184 | return doNextSplit(f, dir, next, off) |
| 185 | } |
| 186 | |
| 187 | // doNextSplit splits f at offset off, transfering the data to the next split. |
| 188 | // It returns the next split. |
no test coverage detected