Initial commit
This commit is contained in:
13
task_pack_release/task.go
Normal file
13
task_pack_release/task.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user