-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): pin utils/compress to v0.1.0
- Loading branch information
1 parent
ea45b53
commit 81f7454
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
package cidsdk | ||
|
||
import ( | ||
"github.com/cidverse/cidverseutils/pkg/archive/tar" | ||
"github.com/cidverse/cidverseutils/pkg/archive/zip" | ||
"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 zip.Create(inputDirectory, outputFile) | ||
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 zip.Extract(archiveFile, outputDirectory) | ||
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 tar.Create(inputDirectory, outputFile) | ||
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 tar.Extract(archiveFile, outputDirectory) | ||
return compress.TARExtract(archiveFile, outputDirectory) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters