fix(Compression): Permission is now 775

This commit is contained in:
netbenix 2021-11-28 19:07:07 +01:00
parent d74f29e97e
commit 65fa075543

View file

@ -20,7 +20,7 @@ func CreateBakFile(fileName string, folderPath string, destinationPath string, b
pathToFile := destinationPath + string(os.PathSeparator) + fileName + ".bak"
fileToWrite, err := os.OpenFile(pathToFile, os.O_CREATE|os.O_RDWR, os.FileMode(600))
fileToWrite, err := os.OpenFile(pathToFile, os.O_CREATE|os.O_RDWR, os.FileMode(0775))
if err != nil {
logger.Fatal(err)
}