(ctx context.Context, blockId string)
| 1557 | } |
| 1558 | |
| 1559 | func isFileEmpty(ctx context.Context, blockId string) bool { |
| 1560 | if blockId == "" { |
| 1561 | return true |
| 1562 | } |
| 1563 | file, statErr := filestore.WFS.Stat(ctx, blockId, JobOutputFileName) |
| 1564 | if statErr == fs.ErrNotExist { |
| 1565 | return true |
| 1566 | } |
| 1567 | if statErr != nil { |
| 1568 | log.Printf("error statting block output file: %v\n", statErr) |
| 1569 | return true |
| 1570 | } |
| 1571 | return file.Size == 0 |
| 1572 | } |
| 1573 | |
| 1574 | func writeSessionSeparatorToTerminal(blockId string, termWidth int) { |
| 1575 | if blockId == "" { |
no test coverage detected