Files
varia-go/task_pack_release/task.go
2025-10-26 16:22:50 +01:00

14 lines
382 B
Go

package task_pack_release
import "os"
func PackRelease(srcPath string, dstPath string, releaseName string, archivePwd string, archiveSize string, nfoSettings *NfoCreatorSettings) error {
nfoPath, err := CreateNfo(dstPath, nfoSettings)
if err != nil {
return err
}
defer os.Remove(nfoPath)
return compress(srcPath, dstPath, releaseName, archivePwd, archiveSize, nfoPath)
}