add gowin

This commit is contained in:
unknown
2019-12-16 14:11:22 +08:00
parent 90ff08ed98
commit 58257be867
4 changed files with 7 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ func CopyDir(srcPath string, destPath string) error {
destNewPath := strings.Replace(path, srcPath, destPath, -1)
log.Println("copy file ::" + path + " to " + destNewPath)
copyFile(path, destNewPath)
if !common.IsWindows(){
if !common.IsWindows() {
chMod(destNewPath, 0766)
}
}
@@ -210,8 +210,8 @@ func pathExists(path string) (bool, error) {
return false, err
}
func chMod(name string, mode os.FileMode) {
if !common.IsWindows(){
func chMod(name string, mode os.FileMode) {
if !common.IsWindows() {
os.Chmod(name, mode)
}
}