MCPcopy
hub / github.com/cortexlabs/cortex / UntarFileToMem

Function UntarFileToMem

pkg/lib/archive/tar.go:183–191  ·  view source on GitHub ↗
(src string)

Source from the content-addressed store, hash-verified

181}
182
183func UntarFileToMem(src string) (map[string][]byte, error) {
184 file, err := files.Open(src)
185 if err != nil {
186 return nil, errors.Wrap(err, _errStrUntar)
187 }
188 defer file.Close()
189
190 return UntarReaderToMem(file)
191}

Callers 1

CheckTarFunction · 0.85

Calls 3

OpenFunction · 0.92
WrapFunction · 0.92
UntarReaderToMemFunction · 0.85

Tested by 1

CheckTarFunction · 0.68