-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.go
25 lines (20 loc) · 921 Bytes
/
archive.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package cidsdk
import (
"github.com/cidverse/cidverseutils/compress"
)
// ZIPCreate creates a zip archive of the directory at the given path.
func (sdk SDK) ZIPCreate(inputDirectory string, outputFile string) error {
return compress.ZIPCreate(inputDirectory, outputFile)
}
// ZIPExtract unzips the zip archive at the given path into the given directory.
func (sdk SDK) ZIPExtract(archiveFile string, outputDirectory string) error {
return compress.ZIPExtract(archiveFile, outputDirectory)
}
// TARCreate creates a tar archive of the directory at the given path.
func (sdk SDK) TARCreate(inputDirectory string, outputFile string) error {
return compress.TARCreate(inputDirectory, outputFile)
}
// TARExtract extracts a tar archive at the given path into the given directory.
func (sdk SDK) TARExtract(archiveFile string, outputDirectory string) error {
return compress.TARExtract(archiveFile, outputDirectory)
}