|
|
@ -690,11 +690,11 @@ func copyFile(source string, destination string) (err error) {
|
|
|
|
_, err = io.Copy(destinationFile, sourceFile)
|
|
|
|
_, err = io.Copy(destinationFile, sourceFile)
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|
stats, err := os.Stat(source)
|
|
|
|
stats, err := os.Stat(source)
|
|
|
|
if err != nil {
|
|
|
|
if err == nil {
|
|
|
|
err = os.Chmod(destination, stats.Mode())
|
|
|
|
return os.Chmod(destination, stats.Mode())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func copyDir(source string, destination string) (err error) {
|
|
|
|
func copyDir(source string, destination string) (err error) {
|
|
|
|