Merge pull request #33 from netbenix/deepsource-ign-fix
Some checks are pending
Go / build (push) Waiting to run
Some checks are pending
Go / build (push) Waiting to run
fix(DeepSource): Fixed misspelled ignore flag
This commit is contained in:
commit
c380031bdc
1 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func CreateBakFile(fileName string, folderPath string, destinationPath string, backupName string) string {
|
||||
func CreateBakFile(fileName, folderPath, destinationPath, backupName string) string {
|
||||
logger := Logging.DetailedLogger("Compression", "CreateBakFile")
|
||||
|
||||
pathToFile := destinationPath + string(os.PathSeparator) + fileName + ".bak"
|
||||
|
|
@ -30,7 +30,7 @@ func CreateBakFile(fileName string, folderPath string, destinationPath string, b
|
|||
return pathToFile
|
||||
}
|
||||
|
||||
func compress(fileToWrite *os.File, folderPath string, backupName string) {
|
||||
func compress(fileToWrite *os.File, folderPath, backupName string) {
|
||||
logger := Logging.DetailedLogger("Gzip", "compress")
|
||||
|
||||
zr, _ := gzip.NewWriterLevel(fileToWrite, flate.BestCompression)
|
||||
|
|
@ -38,7 +38,7 @@ func compress(fileToWrite *os.File, folderPath string, backupName string) {
|
|||
|
||||
go fmt.Printf("[%s] Start compression...\n", backupName)
|
||||
SQL.NewLogEntry(SQL.GetSQLInstance(), uuid.New(), SQL.LogInfo, backupName, SQL.SQLStage_Compress, SQL.REMOTE_NONE, "Start compression", time.Now())
|
||||
// skippcq: SCC-SA4009
|
||||
// skipcq: SCC-SA4009
|
||||
filepath.Walk(folderPath, func(file string, fi os.FileInfo, err error) error {
|
||||
header, err := tar.FileInfoHeader(fi, file)
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue