Versions in this module Expand all Collapse all v0 v0.0.2 Nov 3, 2023 Changes in this version + const MaxCUEMod + const MaxLICENSE + const MaxZipFile + func Create(w io.Writer, m module.Version, files []F, fio FileIO[F]) (err error) + func CreateFromDir(w io.Writer, m module.Version, dir string) (err error) + func Unzip(dir string, m module.Version, zipFile string) (err error) + type CheckedFiles struct + Invalid []FileError + NoModError error + Omitted []FileError + SizeError error + Valid []string + func CheckDir(dir string) (CheckedFiles, error) + func CheckFiles(files []F, fio FileIO[F]) (CheckedFiles, error) + func CheckZip(m module.Version, r io.ReaderAt, zipSize int64) (*zip.Reader, *zip.File, CheckedFiles, error) + func CheckZipFile(m module.Version, zipFile string) (CheckedFiles, error) + func (cf CheckedFiles) Err() error + type FileError struct + Err error + Path string + func (e FileError) Error() string + func (e FileError) Unwrap() error + type FileErrorList []FileError + func (el FileErrorList) Error() string + type FileIO interface + Lstat func(f F) (os.FileInfo, error) + Open func(f F) (io.ReadCloser, error) + Path func(f F) string + type ZipFileIO struct + StripPrefix string + func (ZipFileIO) Lstat(f *zip.File) (os.FileInfo, error) + func (ZipFileIO) Open(f *zip.File) (io.ReadCloser, error) + func (fio ZipFileIO) Path(f *zip.File) string