Function
preflightDecompressTool
(decompressType files.CompressType)
Source from the content-addressed store, hash-verified
| 475 | } |
| 476 | |
| 477 | func preflightDecompressTool(decompressType files.CompressType) error { |
| 478 | switch decompressType { |
| 479 | case files.Rar, files.X7z: |
| 480 | _, err := files.NewExtractShellArchiver(decompressType) |
| 481 | return err |
| 482 | default: |
| 483 | return nil |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | func (f *FileService) StopCompress(taskID string) error { |
| 488 | if cancel, ok := global.TaskCtxMap[taskID]; ok { |
Tested by
no test coverage detected