directory as an io.ReadCloser and am writing all the contents of it to a file using io.Copy but it's kinda slow and single threaded.
io.CopyBuffer wasn't much help either
I could just try io.CopyN and run a goroutine for some buffer but I am not getting total size of the source file (directory)
Soo..... thoughts? :)
Oof.. this'll get a little complicated.
How are you opening directory as io.Readcloser?
Обсуждают сегодня