reduce number of open files while processing nested java archives (#227)

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-10-16 17:22:14 -04:00
committed by GitHub
parent c0b9d7854b
commit bb14f3b45b
4 changed files with 44 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
package file
import (
"io"
"os"
)
type Opener struct {
path string
}
func (o Opener) Open() (io.ReadCloser, error) {
return os.Open(o.path)
}