(DirectoryPath string, id int, ch chan<- types.DirectorySizeOutput, wg *sync.WaitGroup)
| 23 | } |
| 24 | |
| 25 | func GetDirectorySizeAsync(DirectoryPath string, id int, ch chan<- types.DirectorySizeOutput, wg *sync.WaitGroup) { |
| 26 | defer wg.Done() |
| 27 | |
| 28 | size, sizeStr, err := GetDirectorySize(DirectoryPath) |
| 29 | |
| 30 | ch <- types.DirectorySizeOutput{ |
| 31 | SizeBytes: size, |
| 32 | Size: sizeStr, |
| 33 | Id: id, |
| 34 | Error: err, |
| 35 | } |
| 36 | } |
no test coverage detected